note 39205 added to function.session-register

From: Date: Tue, 20 Jan 2004 17:35:59 +0000
Subject: note 39205 added to function.session-register
Groups: php.notes 
Request: Send a blank email to php-notes+get-63895@lists.php.net to get a copy of this message
Why is there a "caution" saying NOT to use session_register() when using the $HTTP_SESSION_VARS? It took me some time to find that $HTTP_SESSION_VARS["x"]=1; does NOT set "x" as a session var. I HAD TO session_register("x") in order to use it. Why? I'm using PHP 4.0.6, with php_value session.register_globals 0 php_value session.use_trans_sid 1 php_value session.auto_start 0 and yes, I made "session_start()" before to use that variables. ---- Manual Page -- http://www.php.net/manual/en/function.session-register.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39205 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39205&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39205&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#63895) next »