Re: Sessions

From: Date: Fri, 20 Sep 2002 13:43:27 +0000
Subject: Re: Sessions
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-117017@lists.php.net to get a copy of this message
I've had the same problem, and I resolved it by using html tags instead of headers, and the problem was resolved. there are some issues I still haven't been able to work out though (I want it to use cookies instead of SID's). "John Holmes" <holmes072000@charter.net> wrote in message news:001b01c260a7$cc6744c0$b402a8c0@mango... > You have session_start() on the second page, too, right?? > > > -----Original Message----- > > From: Erwin [mailto:erwin@isiz.com] > > Sent: Friday, September 20, 2002 5:45 AM > > To: php-general@lists.php.net > > Subject: [PHP] Sessions > > > > Hi all, > > > > I'm having a problem with sessions. I use PHP version 4.2.2. > > The project I'm working on, only uses the global variables, $_GET, > $_POST > > and $_SESSION. > > > > When I store something in the $_SESSION variable, everything goes > well. I > > can print the contents of this array with print_r, and every variable > I > > stored is there. But when I leave the page with the header(...) > directive > > (or any other way), the session is empty! > > > > The session file contains no data (so it is created!), the $_SESSION > > variable is empty... > > > > Some extra information: > > - I've tried this on PHP 4.1.2, and that works OK > > - I've tried output_buffering (on and off) > > - I've tried registered_globals (on and off) > > - I've tried using "session_write_close()" before leaving the page > > - I've checked the "session_start()" statement (Yes, it's there :-) ) > > > > I hope someone can help me with this... > > > > Thanks in advance, > > > > Erwin > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#117017) next »