Re: setcooke(...) before header("Location: XYZ") - Cookie doesn't set!
| From: | Chris Shiflett | Date: | Tue, 21 Jan 2003 23:49:15 +0000 |
| Subject: | Re: setcooke(...) before header("Location: XYZ") - Cookie doesn't set! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132520@lists.php.net to get a copy of this message | ||
--- Mike Potter <mike@mikenbob.com> 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 around it. You can find out more here:
http://marc.theaimsgroup.com/?l=php-general&m=102929828515647&w=2
Chris