note 14616 deleted from ref.session by sniper

From: Date: Sun, 28 Jul 2002 01:10:25 +0000
Subject: note 14616 deleted from ref.session by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-33786@lists.php.net to get a copy of this message
<? ############################################# # REFERENCE JUGGLING WITH HTTP_SESSION_VARS # needed for session vars when # register_globals is off ############################################# function & sess_reg($x){ global $HTTP_SESSION_VARS; session_register( & $HTTP_SESSION_VARS[$x]); return $HTTP_SESSION_VARS[$x]; } //session_start(); $foo = & sess_reg("foo"); //main program echo $foo++; var_dump($HTTP_SESSION_VARS); #############################################

« previous php.notes (#33786) next »