note 49310 added to function.session-unset
| From: | DrewBradford-drew at drewbradford dot com | Date: | Sun, 23 Jan 2005 22:07:27 +0000 |
| Subject: | note 49310 added to function.session-unset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-83832@lists.php.net to get a copy of this message | ||
You don't have to call session_destroy automatically performs the actions of the session_unset.
When you call session_unset, the session variable ($_SESSION) and corresponding session_id still
exist. So you're starting from scratch (no session variables), but you have the pre-existing
session.
When you call session_destroy, it unsets all session variables, but also destroys the session
itself, so PHP no longer tracks the corresponding session_id.
----
Manual Page -- http://www.php.net/manual/en/function.session-unset.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49310
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49310&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49310&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49310&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49310&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49310&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49310&report=yes
Search -- http://master.php.net/manage/user-notes.php