RE: [PHP] Session data getting lost
| From: | Rich Gray | Date: | Wed, 17 Sep 2003 16:41:58 +0000 |
| Subject: | RE: [PHP] Session data getting lost | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162894@lists.php.net to get a copy of this message | ||
Jan
Sorry - no that doesn't help - as you can see from the code snippet I posted
the session_start() is at the very top of the code...
Thx anyway.
Rich
>
> You have to put session_start(); at the VERY TOP of your code.
> even before alle the <html> tags.
> Hope that helps!
>
> Jan
>
> --- 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.
>
> Chris
>