Re: cookies and redirection

From: Date: Fri, 15 Aug 2003 17:13:42 +0000
Subject: Re: cookies and redirection
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-159721@lists.php.net to get a copy of this message
Ok, I have changed my code so the headers are sent as: header("HTTP/1.0 302 Redirect"); header("Location: index2.php"); header("Set-Cookie: USER_COOKIE=$sUser"); I have changed the file name to nph-unsecure.php It successfully sends me to the index2.php page, but no cookie... any ideas "Joaco" <joaco182@hotmail.com> wrote in message news:20030813200820.21339.qmail@pb1.pair.com... I have a small problem was wondering if anyone out there knew anyhting about this. I set a cookie in my code and then redirect the user using a header function. When I do this, my cookie is not created. If i remove the header function, then it is. Is there a way around this?

« previous php.general (#159721) next »