note 117320 added to function.http-parse-cookie

From: Date: Thu, 21 May 2015 13:55:39 +0000
Subject: note 117320 added to function.http-parse-cookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-202629@lists.php.net to get a copy of this message
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. ---- Server IP: 72.52.91.14 Probable Submitter: 81.35.81.107 ---- Manual Page -- http://php.net/manual/en/function.http-parse-cookie.php Edit -- https://master.php.net/note/edit/117320 Del: integrated -- https://master.php.net/note/delete/117320/integrated Del: useless -- https://master.php.net/note/delete/117320/useless Del: bad code -- https://master.php.net/note/delete/117320/bad+code Del: spam -- https://master.php.net/note/delete/117320/spam Del: non-english -- https://master.php.net/note/delete/117320/non-english Del: in docs -- https://master.php.net/note/delete/117320/in+docs Del: other reasons-- https://master.php.net/note/delete/117320 Reject -- https://master.php.net/note/reject/117320 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202629) next »