Re: setcooke(...) before header("Location: XYZ") - Cookie doesn't set!

From: Date: Wed, 22 Jan 2003 14:06:05 +0000
Subject: Re: setcooke(...) before header("Location: XYZ") - Cookie doesn't set!
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-132586@lists.php.net to get a copy of this message
Sorry, that message it what is in the body of the response, so it's not working, I think. Unless that's what it's supposed to do. In that case, it won't work for what I want. I simply want the form to send to the php file, which then processes the information, and redirects the user to the next screen. I would like the transition to be invisible. On a related question, I guess I could use global variables instead of cookies. Is there a benefit or detriment to that, other than it doesn't persist like a cookie would? Thanks, Mike "Michael Sims" <mhsims@midsouth.rr.com> wrote in message news:csas2vks46gqo69mk1rub62mbfrc4gqf3t@4ax.com... 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...

« previous php.general (#132586) next »