register_globals issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

register_globals issue

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
Post Reply