Re: setcooke(...) before header("Location: XYZ") - Cookie doesn't set!
| From: | Michael Sims | Date: | Wed, 22 Jan 2003 05:29:17 +0000 |
| Subject: | Re: setcooke(...) before header("Location: XYZ") - Cookie doesn't set! | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132549@lists.php.net to get a copy of this message | ||
On Tue, 21 Jan 2003 20:17:40 -0700, you wrote:
>I tried a test file with this, and the form is sent, and the nph-test2.php
>file returns this
>
>Status: 302
>Content-type: text/html
>X-Powered-By: PHP/4.3.0
>Location: test.php
>Set-Cookie: testcookie=test
I'm a bit confused. Is it working for you now, or not? What do you
mean by "returns"....is the above sent as an HTTP response header? Or
does this show up in the body of the response? Since the above
contains the 'Set-Cookie' directive (which IIS would normally strip
out) it should be working...