]> granicus.if.org Git - php/commit
Session variables now obey track_vars and gpc_globals settings.
authorAndrei Zmievski <andrei@php.net>
Sat, 4 Dec 1999 17:02:04 +0000 (17:02 +0000)
committerAndrei Zmievski <andrei@php.net>
Sat, 4 Dec 1999 17:02:04 +0000 (17:02 +0000)
commit20190c966d81f832078065c8e6ff2d44d0183330
tree510f2c942c99a9ce304efb1010dd1473d9f0501c
parentf962a35df75d343f5f4503864c067cf36dac9e11
Session variables now obey track_vars and gpc_globals settings.
If track_vars is on then decoded variables appear in $HTTP_STATE_VARS
array. If gpc_globals is on, then session vars are decoded into global
variables. If both are on, then globals and $HTTP_STATE_VARS contents
are references to each other.

The /decoder functions now just need to call php_set_session_var()
this behavior.

@ -Session vars are now decoded into $HTTP_STATE_VARS[] array and the
@ globals, depending on track_vars and gpc_globals settings (Andrei)

# Encoding source is currently only globals. We may want to change this
# in the future.
ext/session/php_session.h
ext/session/session.c
main/main.c