![]() |
Storing session information
I am working on a plugin which builds an array and I want to keep this in their session (or, ideally, for X minutes).
calling session_start() and then $_SESSION['my_var'] = [my array] seems to not exactly have the desired effect and it is causing the page to be forceably reloaded through the Cache-Control header. What is the best way to store this information so it doesn't have to be queried/built on every page load? I'm new to vB modification programming... |
vBulletin doesn't use PHP sessions.
|
Quote:
So what method should I use to store this? Should I create another column in the sess table and just store it as serialized, or what? |
If you decide to create another column you may find this helpful: [How-To] Extend and use the Session Table Effectively
|
Quote:
Is that the "best" way to accomplish what I want? Edit: Just realized it's a MEMORY table and therefore I can't store a serialized array in that table... there won't be enough room. Ideas? |
Do you really need to store a whole array?
|
Quote:
|
All times are GMT. The time now is 07:27 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|