PHP 4.0 Bug #3021: session_destroy does not work
| From: | sql42 at hotmail dot com | Date: | Tue, 21 Dec 1999 20:39:19 +0000 |
| Subject: | PHP 4.0 Bug #3021: session_destroy does not work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-13918@lists.php.net to get a copy of this message | ||
From: sql42@hotmail.com
Operating system: Mandrake 6.1
PHP version: 4.0 Beta 3
PHP Bug Type: Misbehaving function
Bug description: session_destroy does not work
Code:
<?
echo "PHPSESSID: " . $PHPSESSID . "<br>";
session_destroy($PHPSESSID);
session_destroy();
session_destroy("PHPSESSID");
session_register("mem_un");
echo "User Name: " . $mem_un;
?>
Output:
PHPSESSID: b6e71f785e6946224de78db0ad2c11f1
Warning: Trying to destroy uninitialized session in /www/htdocs/fwq/myfwq/sessiondestroy.php on line
3
Warning: Trying to destroy uninitialized session in /www/htdocs/fwq/myfwq/sessiondestroy.php on line
4
Warning: Trying to destroy uninitialized session in /www/htdocs/fwq/myfwq/sessiondestroy.php on line
5
User Name: Test2
Am I missing something? The doc page seems to make this function out to be pretty simple.....