Bluehost.com Web Hosting $6.95

RE: [PHP] Session data getting lost

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. ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-17-2003
Jan Ruessel
 
Posts: n/a
Default RE: [PHP] Session data getting lost

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 07:07 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0