Re: SESSION variable and register_globals

From: Date: Mon, 10 Feb 2003 11:25:14 +0000
Subject: Re: SESSION variable and register_globals
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-135037@lists.php.net to get a copy of this message
Hi all, > 1.If register_globals is on, then doing an unset($_SESSION["blah"]), to unset > a session variable will not work as the variable will be unset in that > particular instance but will be restored in next instance of that session. > Hence session_unregister("blah") also must be used to properly unset the > session with global_register on. Is this true ? Wasn't it in this list, where I heard, better not to use session_unregister() any more?? What do you think about using: $_SESSION["blah"] = ""; to delete a value? Regards, Bastian

« previous php.general (#135037) next »