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

2003-01-22 Thread Mike Potter
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

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

2003-01-21 Thread Chris Shiflett
--- Mike Potter [EMAIL PROTECTED] wrote: I am using Microsoft IIS with the latest PHP installed. Here's a smple: setcookie(testCookie, testValue, time() + 3600, /); header(Location: http://newpage.php;); exit; This will not work with IIS. You need to use a meta refresh or something to work

RE: [PHP] setcooke(...) before header(Location: XYZ) - Cookie doesn't set!

2003-01-21 Thread Rich Gray
Mike IIRC this is a known bug with IIS (not PHP) when it gets the http redirect it junks the cookie - sorry I can't remember much more detail than that... Workaround maybe is to spit out an HTML based META refresh redirect tag instead of using the header() call. HTH Rich -Original

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

2003-01-21 Thread Mike Potter
Do you know how do do this? Thanks, Mike Jason K Larson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Discussion on this list has suggested that it can work if PHP is set to run as ISAPI, not CGI. HTH, Jason k Larson Mike Potter wrote: HELP! I know

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

2003-01-21 Thread Michael Sims
[top-posting fixed] Jason K Larson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Discussion on this list has suggested that it can work if PHP is set to run as ISAPI, not CGI. Do you know how do do this? Although using the ISAPI dll version of PHP would

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

2003-01-21 Thread Mike Potter
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 Here is my code: ?php header(HTTP/1.0 302 Redirect); header(Location: test.php);

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

2003-01-21 Thread Mike Potter
I tried this one as well. When trying to load, the browser says HTTP 500 - Internal server error Internet Explorer I even rebooted! Mike Jason K Larson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Follow the ISAPI module install instructions.

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

2003-01-21 Thread Michael Sims
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,