note 29122 added to function.session-unregister

From: Date: Mon, 03 Feb 2003 20:57:40 +0000
Subject: note 29122 added to function.session-unregister
Groups: php.notes 
Request: Send a blank email to php-notes+get-43341@lists.php.net to get a copy of this message
I read the notes but I'm confused. Some of the documentation specifically warns against using $_SESSION with, say, session_register. Does this mean you can't even access, say, $_SESSION['user'] ???? If so, it seems like session_register etc is only useful IF register_globals is on. Is that right ? Also, another note indicates that you're supposed to do: $_SESSION['user'] = NULL to remove a variable from the session store. But for me, using PHP 4.2.2, with register_globals off, this does NOTHING. The only way I can unregister a variable is to use session_unregister. But, since register_globals is off, it also seems ilke I HAVE to use $_SESSION. So how can I, if the instructions say I can't use BOTH session_unreigster and $_SESSION at the same time ? -- http://www.php.net/manual/en/function.session-unregister.php http://master.php.net/manage/user-notes.php?action=edit+29122 http://master.php.net/manage/user-notes.php?action=delete+29122 http://master.php.net/manage/user-notes.php?action=reject+29122

« previous php.notes (#43341) next »