Re: FW: Cookies, Dammit!

From: Date: Tue, 16 Jan 2001 22:34:55 +0000
Subject: Re: FW: Cookies, Dammit!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34909@lists.php.net to get a copy of this message
> will this not work... > > if (($HTTP_COOKIE_VARS["foo"] != 'bar') && > ($HTTP_GET_VARS["set"] != > true)) { > SetCookie("foo", "bar"); > header("Location: $PHP_SELF?set=true"); > } > > at the top of the page. or is this what is unreliable on some browsers? Some browsers just can't handle a redirect and a set-cookie header in the same request. How you get PHP to generate these headers is irrelevant. -Rasmus

« previous php.general (#34909) next »