note 25814 added to ref.session
| From: | pcvandam at xs4all dot nl | Date: | Mon, 07 Oct 2002 19:04:11 +0000 |
| Subject: | note 25814 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37753@lists.php.net to get a copy of this message | ||
Like said here:
http://www.php.net/manual/en/function.unset.php
unset ($_SESSION['var']);
does NOT work right. It only unsets the session variable for that page.
Use
$_SESSION['var'] = null;
instead.
--
http://www.php.net/manual/en/ref.session.php
http://master.php.net/manage/user-notes.php?action=edit+25814
http://master.php.net/manage/user-notes.php?action=delete+25814
http://master.php.net/manage/user-notes.php?action=reject+25814