note 33998 added to function.unset
| From: | Peter at rack1 dot php dot net | Date: | Sun, 13 Jul 2003 11:15:52 +0000 |
| Subject: | note 33998 added to function.unset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52018@lists.php.net to get a copy of this message | ||
The following:
unset( $_SESSION['variable'], $variable );
did not work for me either in PHP 4.2, however not wanting to use session_unregister() since the
manual explicitly tells me not to, I tried:
unset($GLOBALS['variable']);
unset($_SESSION['variable']);
and this worked. So perhaps we do not need session_unregister() after all!
----
Manual Page -- http://www.php.net/manual/en/function.unset.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33998
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33998&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33998&report=yes