are cookies names __Secure-SessionI more secure? - Stack Overflow

MDN on cookie namesI find very little evidence that a cookie name has effect on its security. Is prepe

MDN on cookie names

I find very little evidence that a cookie name has effect on its security. Is prependening __Secure- to a cookie name increasing security? Or is this more a code of conduct without any technical effect?

MDN on cookie names

I find very little evidence that a cookie name has effect on its security. Is prependening __Secure- to a cookie name increasing security? Or is this more a code of conduct without any technical effect?

Share Improve this question edited Mar 10 at 9:38 theking2 asked Mar 8 at 14:26 theking2theking2 2,9162 gold badges34 silver badges49 bronze badges 1
  • 1 No, it does not increase safety and is not important. It can be used to give a better overview. The important parameters are Secure and HttpOnly. – Bademeister Commented Mar 8 at 14:34
Add a comment  | 

1 Answer 1

Reset to default -1

The usage of the __Secure- prefix in the cookie name is specified in the specification draft draft-ietf-httpbis-cookie-prefixes-00.

See 3.1. The "__Secure-" prefix:

If a cookie's name begins with __Secure-, the cookie MUST be:

  1. Set with a "Secure" attribute
  2. Set from a URI whose "scheme" is considered "secure" by the user agent.

This is an additional safety guard implemented in the user agent (your browser). If such a cookie will be received (by the Set-Cookie header), but the Secure attribute is missing, then the cookie should be ignored. See 5.7. Storage Model of the Cookies: HTTP State Management Mechanism specification draft:

5.7. Storage Model

[...]

  1. If the cookie-name begins with a case-insensitive match for the string "__Secure-", abort these steps and ignore the cookie entirely unless the cookie's secure-only-flag is true.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744893951a4599581.html

相关推荐

  • are cookies names __Secure-SessionI more secure? - Stack Overflow

    MDN on cookie namesI find very little evidence that a cookie name has effect on its security. Is prepe

    1天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信