Re: Sessions NOT working - somebody please help me!

From: Date: Sat, 28 Aug 2004 11:32:03 +0000
Subject: Re: Sessions NOT working - somebody please help me!
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-194998@lists.php.net to get a copy of this message
U¿ytkownik "Jason Wong" <php-general@gremlins.biz> napisa³ w wiadomo¶ci news:200408281858.16722.php-general@gremlins.biz... > On Saturday 28 August 2004 18:52, gregosh wrote: > > Sorry for posting this problem again but it's been really driving me crazy. > > I've reinstalled Apache and PHP for the 5th time and the result is still > > the same - sessions work only when using <a href="b.php">click</a> > > link. > > When using header("location: b.php"); the session information is lost and a > > new cookie is set in the temp dir. My work has been waiting for a week > > because of this problem and I can't go on with it. I'm out of ideas. What > > is going on?? > > 1) Use a fully qualified URL for the redirection > 2) session_write_close() before you redirect > 3) In future search the archives first, this type of problem has been asked > and answered many times before session_write_close() didn't help. After yet another reinstallation fully qualified URL seems to have started working. However it hadn't helped before - I'd tried it several times. So to be honest I still don't know why but it started working. Thanks Greg

« previous php.general (#194998) next »