RE: [PHP] HTTP_SESSION_VARS

From: Date: Thu, 08 Nov 2001 18:50:06 +0000
Subject: RE: [PHP] HTTP_SESSION_VARS
Groups: php.general 
Request: Send a blank email to php-general+get-73931@lists.php.net to get a copy of this message
> I am doing $username = $HTTP_POST_VARS[username]; > and if I print $username it has a value Try doing $HTTP_SESSION_VARS['username'] = $HTTP_POST_VARS['username']; When register_globals is off, I don't believe that globals get stored to the $HTTP_SESSION_VARS array when the script ends. Instead, you have to assign them there yourself. Side note: I don't think you need to use session_register() as well, just create the right elements in $HTTP_SESSION_VARS instead. Kirk

« previous php.general (#73931) next »