Re: Warning regarding session side-effect : puzzle
- From: Janwillem Borleffs <jw@xxxxxxxxxxxxx>
- Date: Mon, 17 Nov 2008 13:47:56 +0100
trookat schreef:
I am using php5 . the warning in question is
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
You are doing:
session_start();
session_register("foo");
$foo = 1;
Instead of the recommended:
session_start();
$_SESSION['foo'] = 1;
JW
.
- Follow-Ups:
- Re: Warning regarding session side-effect : puzzle
- From: trookat
- Re: Warning regarding session side-effect : puzzle
- References:
- Warning regarding session side-effect : puzzle
- From: trookat
- Warning regarding session side-effect : puzzle
- Prev by Date: Re: Warning regarding session side-effect : puzzle
- Next by Date: Re: Warning regarding session side-effect : puzzle
- Previous by thread: Re: Warning regarding session side-effect : puzzle
- Next by thread: Re: Warning regarding session side-effect : puzzle
- Index(es):
Relevant Pages
|