Re: Warning regarding session side-effect : puzzle
- From: trookat <trookat@xxxxxxxxxxx>
- Date: Mon, 17 Nov 2008 22:10:59 +0900
Janwillem Borleffs wrote:
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
thanks for the reply, however i am using $_SESSION['foo']=$bar.
.
- References:
- Warning regarding session side-effect : puzzle
- From: trookat
- Re: Warning regarding session side-effect : puzzle
- From: Janwillem Borleffs
- Warning regarding session side-effect : puzzle
- Prev by Date: Re: Warning regarding session side-effect : puzzle
- Next by Date: Re: How to manage date fields in template
- Previous by thread: Re: Warning regarding session side-effect : puzzle
- Next by thread: Convert input to Unix Timestamp
- Index(es):
Relevant Pages
|