Page 1 of 1

register_globals issue

Posted: Mon Jul 31, 2006 2:00 pm
by itsmani1
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

can i slove this problem via .htaccess file?

if its possible please help me

thanks

Posted: Mon Jul 31, 2006 2:11 pm
by volka
You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively.
see http://de2.php.net/manual/en/configuration.changes.php


But if it is one of your scripts you probably should change your session handling.
Do not use session_register/unregister anymore, only $_SESSION