note 125425 added to function.setcookie
| From: | jve at woodwing dot com | Date: | Fri, 09 Oct 2020 09:02:49 +0000 |
| Subject: | note 125425 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-215554@lists.php.net to get a copy of this message | ||
By allowing '[' and ']' in the cookie name PHP is i.m.o. not compliant with RFC
6265. According to RFC 6265 the cookie name is a 'token'. In RFC 2616 a token is defined
as:
token = 1*<any CHAR except CTLs or separators>
separators = "(" | ")" | "<" | ">" | "@" |
"," | ";" | ":" | "\" | <"> | "/" |
"[" | "]" | "?" | "=" | "{" | "}" | SP |
HT
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.172 (proxied: 62.195.37.4)
----
Manual Page -- http://php.net/manual/en/function.setcookie.php
Edit -- https://master.php.net/note/edit/125425
Del: integrated -- https://master.php.net/note/delete/125425/integrated
Del: useless -- https://master.php.net/note/delete/125425/useless
Del: bad code -- https://master.php.net/note/delete/125425/bad+code
Del: spam -- https://master.php.net/note/delete/125425/spam
Del: non-english -- https://master.php.net/note/delete/125425/non-english
Del: in docs -- https://master.php.net/note/delete/125425/in+docs
Del: other reasons-- https://master.php.net/note/delete/125425
Reject -- https://master.php.net/note/reject/125425
Search -- https://master.php.net/manage/user-notes.php