Validity of HTTP set-cookie header

*爱你&永不变心* 提交于 2020-03-25 16:19:02

问题


I've been focusing on issues relating to cookies. The code below only has line breaks where ; are present to make the header easier to read.

Is there any validity issues or other aspects in this header that would throw off Firefox or Chrome for any reason?

Set-Cookie: session=cee1226c3221ab3deaf5777102a7657c;
expires=Tue, 24-Mar-2020 01:52:24 GMT;
Max-Age=3600;
path=/;
domain=www.example.com;
secure;
HttpOnly
  • Request is over an HTTPS connection.
  • There is zero intention of allowing clients to do more than simply make requests to the server with this session cookie.

来源:https://stackoverflow.com/questions/60824059/validity-of-http-set-cookie-header

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!