This is a discussion on RE: [PHP] Session data getting lost within the PHP General forums, part of the PHP Programming Forums category; You have to put session_start(); at the VERY TOP of your code. even before alle the <html> tags. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |