S
S
sba2013-08-26 17:38:52
HTTP Cookies
sba, 2013-08-26 17:38:52

Google Chrome and Set-Cookie?

Please tell me the correct format of HTTP header Set-Cookie.
rfc2109 says:

av-pairs        =       av-pair *(";" av-pair)
   av-pair         =       attr ["=" value]        ; optional value
   attr            =       token
   value           =       word
   word            =       token | quoted-string
Sending a GET request using Google Chrome to example.com/main/about .
I get a response along with a header:
Set-Cookie:SESSID="9l8MUBbPRhxaD2b9paYMGJ9t0Q9TLLYK"; Version="1"; Path="/"
Notice the Path="/" attribute. Nevertheless, Chrome remembers the cookie with Path: /main
If Path is sent as a token and not quoted-string, that is, Path=/ - then everything works correctly.
Where is the truth and why is Google Chrome ignoring the RFC?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question