Page 1 of 1

Warning message

Posted: Wed Sep 08, 2010 5:23 pm
by md7dani
I get the following message on a webpage:

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

What does it mean?

Re: Warning message

Posted: Wed Sep 08, 2010 6:11 pm
by Christopher
Sounds like you are trying to use session_register() to register a global variable set by register_globals. Either turn off the error per the manual. Or fix the code to not user register_globals.