note 28345 deleted from function.setcookie by vincent
| From: | vincent@php.net | Date: | Wed, 10 Sep 2003 18:41:04 +0000 |
| Subject: | note 28345 deleted from function.setcookie by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55972@lists.php.net to get a copy of this message | ||
Note Submitter: bmatzelle@NOSPAM.yahoo.com
----
I was having problems with making cookies work consistently in my web browser. I was running
setcookie() then immediately redirecting the user to a different page like so:
setcookie("name", "value");
header("Location: some_page.php");
For some reason the cookie would set itself with IE but inconsistently (about 10% of the time) with
Mozilla and Opera. These two browser do not accept cookies unless the full page is loaded. The
workaround is to only set cookies on pages that are never re-directed. It is unfortunate but
required.