The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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... |
#2
|
||||
|
||||
vBulletin doesn't use PHP sessions.
|
#3
|
|||
|
|||
Which I quickly learned
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? |
#4
|
|||
|
|||
If you decide to create another column you may find this helpful: [How-To] Extend and use the Session Table Effectively
|
#5
|
|||
|
|||
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? |
#6
|
||||
|
||||
Do you really need to store a whole array?
|
#7
|
|||
|
|||
Instead of running the query on every load and then building the array, yes.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|