note 33807 added to function.unset

From: Date: Tue, 08 Jul 2003 09:40:46 +0000
Subject: note 33807 added to function.unset
Groups: php.notes 
Request: Send a blank email to php-notes+get-51683@lists.php.net to get a copy of this message
I think it could be usefull for those who had problem and don't want to use session_unregister while using $_SESSION. Under PHP 4.1.2, when register_globals is on,i had to do unset($_SESSION['var']); unset($GLOBALS['var']); to delete the $_SESSION['var'] variable It took me quite a lot of time to understand why only using unset($_SESSION['var']) didn't work. I told my admin that putting register_globals on was a bad thing, but he didn't care ... :-( As at home i put if off, i never had such a problem, but at the univ... ---- Manual Page -- http://www.php.net/manual/en/function.unset.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33807 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33807&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33807&report=yes

« previous php.notes (#51683) next »