note 94030 deleted from function.setcookie by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 11:17:36 +0000 |
| Subject: | note 94030 deleted from function.setcookie by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197082@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
After 2 hours of head scratching, I finally came across a PHP bug filed in 2002 about sending
multiple Set-Cookie headers.
This may be a no-brainer to some, but make sure you set the 2nd param of header() to false if you
wish to send multiple Set-Cookie headers to the browser, otherwise only the last Set-Cookie header
will exist.