Re: PHP 4.0 Bug #3021 Updated: session_destroy does not work
| From: | Michael Bushey | Date: | Wed, 22 Dec 1999 07:24:25 +0000 |
| Subject: | Re: PHP 4.0 Bug #3021 Updated: session_destroy does not work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-13930@lists.php.net to get a copy of this message | ||
Not only does session_destroy not work, but if I use session_unset("varname"); the variable remains with the old value. The ONLY way I can clear out a session variable is to do a session_register and the set the variable to 0.
example:
page1:
session_unset("IDmember");
page2:
session_register("IDmember");
echo "IDmember: "$IDmember;
page2 result:
IDmember: 5
If I were to change page 1 to
session_register("IDmember");
$IDmember=0;
then I would get 0 out of the page2 result, which is effectivly cleared, but it bothers me that none of the session functions other than session_register work at all.
Once again thank you for your time,
Michael
From: Bug Database <php-dev@lists.php.net> To: sql42@hotmail.com Subject: PHP 4.0 Bug #3021 Updated: session_destroy does not work Date: 21 Dec 1999 20:41:39 -0000 ID: 3021 Updated by: andrei Reported By: sql42@hotmail.com Status: Closed Bug Type: Misbehaving function Assigned To: Comments: Calling session_destroy() three times in a row is what produces those warnings. Also, session_destroy() does not clear the session variables. Use session_unset() for that purpose. Full Bug description available at: http://bugs.php.net/version4/?id=3021______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com