Re: How do I prevent a session from rebuilding itself?

From: Date: Wed, 12 Jul 2006 21:04:01 +0000
Subject: Re: How do I prevent a session from rebuilding itself?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-239374@lists.php.net to get a copy of this message
On Tue, July 11, 2006 4:27 pm, Daevid Vincent wrote: > I've noticed a 'feature' that seems to be causing me some pain. > > When a user logs in, we store various pieces of info and their user > class in > a $_SESSION variables. > > This includes a flag saying that they've ben authenticated. > > I would expect that if I 'rm -rf /tmp/sess_*' that the user would get > prompted to re-login (since the flag is not set). > > However what actually happens, is that PHP silently just re-creates > the > session with a new unique identifier but with all the same data in it. > GRRR. > > How can I force this to NOT happen (either via php.ini or via some > function > or directive call in each page load)? Sequence of events: script starts you rm -rf /tmp/sess_* script writes out data script ends Exactly WHAT do you think "should" happen in this case?... -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#239374) next »