RE: [PHP] PLEASE help with sessions

From: Date: Tue, 31 Oct 2000 00:49:58 +0000
Subject: RE: [PHP] PLEASE help with sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-22795@lists.php.net to get a copy of this message
Thank you for your reply. No I am just unregistering the main array called SESSION. And I am doing it in a conditional block that only executes if the user presses the logout submit button. So I really have no idea what is randomly dumping the contents of my registered variable??? Ted > -----Original Message----- > From: richard [mailto:rmccluskey@incubanks.com] > Sent: Monday, October 30, 2000 4:14 PM > To: ted@3bits.com > Cc: Php-General@Lists. Php. Net > Subject: RE: [PHP] PLEASE help with sessions > > > I have found this to be the case too, and in my search for the answers, I > discovered this : > > if you at any time use session_unregister($somevar) it can turn ALL other > held data to null or zero, but leave the data field headers intact... > > are you using session_unregister for any of the $vars in your > sessiohn data > ? > > richard > > -----Original Message----- > From: TR Henigson [mailto:ted@3bits.com] > Sent: Monday, October 30, 2000 1:56 PM > To: php-general@lists.php.net > Subject: [PHP] PLEASE help with sessions > > > I've implemented sessions with a MySQL database in PHP4. I'm registering > one session variable called SESSION that is an associative array. I don't > unregister it until the user logs out. The problem is, once in awhile, > the SESSION array is just emptied. I check the MySQL database and the data > field of the relevant record is set to SESSION|a:0:{} This is different, > of course, from when the user logs out and I unregister SESSION with > session_unregister("SESSION"). In that case, the data field is NULL. > > PLEASE someone tell me why the SESSION array is getting emptied??? > > > Ted > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#22795) next »