note 117320 deleted from function.http-parse-cookie by sobak

From: Date: Sun, 04 Dec 2016 07:22:07 +0000
Subject: note 117320 deleted from function.http-parse-cookie by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208061@lists.php.net to get a copy of this message
Note Submitter: javier ---- For ghpille at hotmail dot: Actually, RFC 6265 describes, in section 4.1.1., that quoted or not, the value of a cookie can be specified using "US-ASCII characters excluding CTLs, whitespace DQUOTE, comma, semicolon, and backslash". Therefore, your example is an invalid cookie, according to this document, which replaces RFC 2965, and the value of a "Set-Cookie" header field can be parsed using a simple explode(';', $cookie_field_value) call.

« previous php.notes (#208061) next »