Re: Sessions NOT working - somebody please help me!

From: Date: Sat, 28 Aug 2004 10:58:16 +0000
Subject: Re: Sessions NOT working - somebody please help me!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-194997@lists.php.net to get a copy of this message
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 -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Design flaws travel in groups -- Sad Truths of Life n2 */

« previous php.general (#194997) next »