Re: Problem with sessions

From: Date: Sat, 28 Aug 2004 09:24:54 +0000
Subject: Re: Problem with sessions
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-194991@lists.php.net to get a copy of this message
Yes, that indeed was a typo but only in my message above. It's not the problem with the script Uzytkownik "Andre Dubuc" <aajdubuc@webhart.net> napisal w wiadomosci news:200408270759.37171.aajdubuc@webhart.net... > 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.

« previous php.general (#194991) next »