Is the name of a cookie case sensitive?

后端 未结 5 1926
面向向阳花
面向向阳花 2020-12-10 10:28

A HTTP Cookie consists of a name-value pair and can be set by the server using this response:

HTTP/1.0 200 OK
Content-type: text/html
Set-Cookie: name=value
         


        
5条回答
  •  一整个雨季
    2020-12-10 10:41

    According to MSDN, cookies name are NOT case sensitive. However, I'm not sure if that's just ASPX/IIS specific implementation. I believe it depends on the web server and the language as well.

    If you send a cookie named "UserID", the browser will make sure they send it back as "UserID", not "userid".

提交回复
热议问题