note 21840 deleted from function.session-unregister by sniper
| From: | sniper@php.net | Date: | Thu, 31 Oct 2002 00:50:51 +0000 |
| Subject: | note 21840 deleted from function.session-unregister by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-38792@lists.php.net to get a copy of this message | ||
from the documentation...
Note: If $_SESSION (or $HTTP_SESSION_VARS for PHP 4.0.6 or less) is used, use unset() to unregister
a session variable.
In fact, unset doesn't have the expected behavior, it only unsets the variable for the
execution of a particular script. Use session_unregister to completely erase the variable from the
session.