RE: [PHP] Session data getting lost

From: Date: Wed, 17 Sep 2003 07:37:58 +0000
Subject: RE: [PHP] Session data getting lost
Groups: php.general 
Request: Send a blank email to php-general+get-162834@lists.php.net to get a copy of this message
You have to put session_start(); at the VERY TOP of your code. even before alle the <html> tags. Hope that helps! Jan -----Original Message----- From: Chris Shiflett [mailto:shiflett@php.net] Sent: Dienstag, 16. September 2003 20:17 To: Rich Gray; Php-General@Lists. Php. Net Subject: Re: [PHP] Session data getting lost --- 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 ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#162834) next »