RE: [PHP] I don't understand HTTP_SESSION_VARS

From: Date: Fri, 23 Mar 2001 22:13:43 +0000
Subject: RE: [PHP] I don't understand HTTP_SESSION_VARS
Groups: php.general 
Request: Send a blank email to php-general+get-45351@lists.php.net to get a copy of this message
OK, try this. The session_start() has to come before the global statement: <?php function write_session() { session_start(); global $HTTP_SESSION_VARS; $HTTP_SESSION_VARS[my_session_var] = "Boogedy Boogedy"; session_register($HTTP_SESSION_VARS["my_session_var"]); } write_session(); echo $HTTP_SESSION_VARS['my_session_var']; ?>

« previous php.general (#45351) next »