Search code examples
httpcookiesrfc

Cookie without a name?


What is going on with the following cookie:

"=value"

In Chrome and Firefox this is identical to:

"value"

i.e. the value for empty cookie name becomes a cookie name.

Is there any official reason for this behavior?


Solution

  • It looks like a bug, since rfc says:

    1. If the name string is empty, ignore the set-cookie-string entirely.