Forum Moderators: coopster

Message Too Old, No Replies

php session bug

         

Rachit

8:15 pm on Dec 20, 2005 (gmt 0)

10+ Year Member




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

this message show when i try to use my login script on my server

I dont't know how to reslove that problem.

my php version is 4.3.8

FalseDawn

5:27 am on Dec 21, 2005 (gmt 0)

10+ Year Member



if your register_globals setting is set to "on" in php.ini, you can try setting it to "off", but this might break some scripts that rely on it being on.
(Although properly written scripts should never rely on this setting being on, as it's a security risk)

If it already set off, do as the warning suggests and turn the compatibility warning setting off in php.ini

coopster

10:02 pm on Dec 21, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



session.bug_compat_42 [php.net]
session.bug_compat_warn [php.net]

You are on 4.3.8, so feel free to turn them off.