note 91537 added to function.setcookie
| From: | doricee at yahoo dot com | Date: | Tue, 16 Jun 2009 04:15:38 +0000 |
| Subject: | note 91537 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-156906@lists.php.net to get a copy of this message | ||
When checking for whitespace make sure to check for a byte order mark. Many text editors hide this
char and it will cause errors with setcookie.
<?php setcookie("test", "cookietest");?>
<U+FEFF><?php setcookie("test", "cookietest");?>
http://en.wikipedia.org/wiki/Byte-order_mark
----
Server IP: 64.71.164.2
Probable Submitter: 64.81.171.99
----
Manual Page -- http://www.php.net/manual/en/function.setcookie.php
Edit -- https://master.php.net/note/edit/91537
Del: integrated -- https://master.php.net/note/delete/91537/integrated
Del: useless -- https://master.php.net/note/delete/91537/useless
Del: bad code -- https://master.php.net/note/delete/91537/bad+code
Del: spam -- https://master.php.net/note/delete/91537/spam
Del: non-english -- https://master.php.net/note/delete/91537/non-english
Del: in docs -- https://master.php.net/note/delete/91537/in+docs
Del: other reasons-- https://master.php.net/note/delete/91537
Reject -- https://master.php.net/note/reject/91537
Search -- https://master.php.net/manage/user-notes.php