Re: Problem with sessions

From: Date: Fri, 27 Aug 2004 04:50:54 +0000
Subject: Re: Problem with sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-194896@lists.php.net to get a copy of this message
> but when I use PHP's header("location: b.php"); expression a new session is > created and the data from the previous one is lost. Anyone familiar with > this problem? Any known solutions? It's been really driving me nuts! you sure the cookie is being set? try this header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/b.php?'.SID);

« previous php.general (#194896) next »