I would like to set variables from session variables. Like this:


I think this is triggering the following error:

Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0

First, am I right? Second, what are my alternatives? Thanks for the help!

r u using


or to stop warnings


I am using


I ended up just turning off the two things mentioned in the error message. Is this not a good solution?