RE: [PHP] Globals and HTTP_SESSION_VARS variables.

2001-09-26 Thread Johnson, Kirk

> Is here anyway to make a variable like $var not the same than
> $HTTP_SESSION_VARS[var], when register_globals=1?. (where 
> $var is in the
> script scope).
> 
> I read in a changelog that this is relatively recent (make 
> $var the same
> than $HTTP_SESSION_VARS[var]).

I'm not sure what was changed. As far as I can see, the global version of
$test and $HTTP_SESSION_VARS["test"] still reference different memory
locations, and they are not the same variable, *while on the current page*.
However, if register_globals is "on", then the global version gets saved to
the session file, and will be in the $HTTP_SESSION_VARS array on the next
page.

";
echo "sess array version of test = ".$HTTP_SESSION_VARS["test"]."";
?>

Kirk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Globals and HTTP_SESSION_VARS variables.

2001-09-25 Thread Rodolfo Gonzalez Gonzalez

Hi,

Is here anyway to make a variable like $var not the same than
$HTTP_SESSION_VARS[var], when register_globals=1?. (where $var is in the
script scope).

I read in a changelog that this is relatively recent (make $var the same
than $HTTP_SESSION_VARS[var]).

Thank you.

Regards,
Rodolfo.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]