Re: Setting a cookie and redirecting
| From: | Richard Lynch | Date: | Tue, 02 Jul 2002 23:20:50 +0000 |
| Subject: | Re: Setting a cookie and redirecting | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-105084@lists.php.net to get a copy of this message | ||
>3) myPage.php sets a cookie using setCookie()
>4) myPage.php redirects to checkBrow.php which uses JavaScript to do some
>basic browser detection
>the cookie back to the client browser first, and *then* performs a redirect.
That's nice...
But different browsers handle the headers in different orders, and it's only
gonna work on *SOME* browsers.
Probably ASP did it the way that IE works, but not Netscape.
Don't do a Cookie and a re-direct together.
Period.
--
Like Music? http://l-i-e.com/artists.htm