note 35224 added to function.unset
| From: | scott at rack1 dot php dot net | Date: | Sun, 24 Aug 2003 05:32:18 +0000 |
| Subject: | note 35224 added to function.unset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-54982@lists.php.net to get a copy of this message | ||
jrshank's suggestion is good, except for a small syntax error.
Instead of:
unset($_SESSION['$variable'];
session_unregister($variable);
it should be:
unset($_SESSION['variable']);
session_unregister($variable);
----
Manual Page -- http://www.php.net/manual/en/function.unset.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35224
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35224&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35224&report=yes