[nycphp-talk] retro php
Kenneth Dombrowski
kenneth at ylayali.net
Tue Oct 14 11:50:35 EDT 2003
On 03-10-14 10:37 -0400, David Rydell wrote:
> the proper syntax is session_register('variable_name')... from the manual:
yeah, I tried that one too, but see Dan's response & my reply to him
> The track_vars and register_globals configuration settings influence how the
> session variables get stored and restored.
>
> Note: As of PHP 4.0.3, track_vars is always turned on.
>
> 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. Example 2. Registering a variable with
> register_globals enabled
> If both track_vars and register_globals are enabled, then the globals
> variables and the $HTTP_SESSION_VARS entries will reference the same value.
register_globals is on here, so this seems to imply that either syntax
should work.
though, as Dan pointed out, you shouldn't mix them.
More information about the talk
mailing list
Automatic Email Organization without missing anything!