note 14616 added to ref.session.php

From: Date: Mon, 06 Aug 2001 14:40:53 +0000
Subject: note 14616 added to ref.session.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16389@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); ############################################# http://www.php.net/manual/en/ref.session.php

« previous php.notes (#16389) next »