Re: Problem with sessions
| From: | Andre Dubuc | Date: | Fri, 27 Aug 2004 12:00:54 +0000 |
| Subject: | Re: Problem with sessions | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194921@lists.php.net to get a copy of this message | ||
Hi,
Looking at your code, I noticed that either you're missing the closing double
quote to close off the Location expression, or you're ending it early with a
double quote at http://".
Shouldn't it read:
header("Location: http://' . $_SERVER['HTTP_HOST']
^
. dirname($_SERVER['PHP_SELF'])
. '/b.php?'.SID'");
^^
Perhaps that's the problem. I'm no expert . . .
Hth,
Andre
On Friday 27 August 2004 07:47 am, gregosh wrote:
> > you sure the cookie is being set? try this
> >
> > header("Location: http://" .
> > $_SERVER['HTTP_HOST']
> > . dirname($_SERVER['PHP_SELF'])
> > . '/b.php?'.SID);
>
> I had tried this before - no result. The cookie is set in the \temp dir
> where it is intended. And that's where the other cookie with new session is
> located too. This really is a strange problem.