note 24457 added to function.unset

From: Date: Fri, 16 Aug 2002 16:12:27 +0000
Subject: note 24457 added to function.unset
Groups: php.notes 
Request: Send a blank email to php-notes+get-35139@lists.php.net to get a copy of this message
If you unset session variables with unset($_SESSION['foo']) the variables will only be unset from the $_SESSION array inside the calling script. Calling isset($_SESSION['foo']) on the next page will return true! It seems that it is impossible to delete only certain session variables permanently. You can, however, delete all variables with session_unset(). -- http://www.php.net/manual/en/function.unset.php http://master.php.net/manage/user-notes.php?action=edit+24457 http://master.php.net/manage/user-notes.php?action=delete+24457 http://master.php.net/manage/user-notes.php?action=reject+24457

« previous php.notes (#35139) next »