Re: Session data getting lost
| From: | Curt Zirzow | Date: | Wed, 17 Sep 2003 20:38:04 +0000 |
| Subject: | Re: Session data getting lost | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162917@lists.php.net to get a copy of this message | ||
* Thus wrote Rich Gray (rich@f1central.net):
> Chris
>
> Thanks for your answer which I'm sorry to say makes no sense to me given the
> code example I supplied ... can you explain to me why you think register
> globals being set to on for the Linux server will cause the $_SESSION
> superglobal array to lose data? Am I missing something obvious here?
This makes perfect sense (see below for what makes sense since you
top posted.) This is all explained if you read the session
documentation.
http://php.net/session
<snip for the lazy>
If register_globals is enabled, then the global variables and the
$_SESSION entries will automatically reference the same values
which were registered in the prior session instance.
</snip>
>
> > --- Rich Gray <rich@f1central.net> wrote:
> > > I'm running v4.2.3 on RedHat v7.0 and am getting some strange
> > > behaviour with the $_SESSION superglobal...
> > ...
> > > It works fine on Win2K albeit v4.3.0 of PHP.
> >
> > Maybe you have register_globals enabled on your Linux server and
> > not on your
> > Windows PC? Compare php.ini files before giving it too much thought.
> >
Curt
--
"I used to think I was indecisive, but now I'm not so sure."