diff --git a/functions/session.xml b/functions/session.xml index 6622ae4904..acacb128d4 100644 --- a/functions/session.xml +++ b/functions/session.xml @@ -35,19 +35,36 @@ by the session module unless the user defines them later. - track_vars and register_globals - configuration settings influence how the session variables get stored - and restored. - + The track_vars and + register_globals + configuration settings influence how the session variables get + stored and restored. + + + + + As of PHP 4.0.3, track_vars is + always turned on. + + + - If track_vars is enabled and - register_globals is disabled, only members of the - global associative array $HTTP_SESSION_VARS can be registered as - session variables. The restored session variables will only be - available in the array $HTTP_SESSION_VARS. + If track_vars is + enabled and register_globals + is disabled, only members of the global associative array + $HTTP_SESSION_VARS can be registered as session variables. The + restored session variables will only be available in the array + $HTTP_SESSION_VARS. - Registering a variable with <literal>track_vars</literal> enabled + Registering a variable with <link + linkend="ini.track-vars"><literal>track_vars</literal></link> + enabled <?php @@ -58,12 +75,14 @@ $HTTP_SESSION_VARS["count"]++; - If register_globals is enabled, then all global - variables can be registered as session variables and the session - variables will be restored to corresponding global variables. + If register_globals + is enabled, then all global variables can be registered as session + variables and the session variables will be restored to + corresponding global variables. - Registering a variable with <literal>register_globals</literal> enabled + Registering a variable with <link linkend="ini.track-vars"><literal>register_globals</literal></link> enabled <?php @@ -74,10 +93,12 @@ $count++; - If both track_vars and - register_globals are enabled, then the globals - variables and the $HTTP_SESSION_VARS entries will reference the same - value. + If both track_vars and + register_globals + are enabled, then the globals variables and the $HTTP_SESSION_VARS + entries will reference the same value. There are two methods to propagate a session id: