Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Sharing session variables?
- Gilles Ganault
March 12, 2008, 10:41 pm
rate this thread
Re: Sharing session variables?
Session data typically can't be shared between users -- that's one of
the reasons they're very effective.
Just store the result somewhere else. You can serialize it and write
it to a file or use something like memcached. Then you just check if
the result you're looking for is in the cache. If it is you use it;
if it isn't you hit the database then store the result.