WebAppSec/Secure Coding Guidelines: Difference between revisions

Jump to navigation Jump to search
Line 70: Line 70:
The "Secure" flag should be set during every set-cookie. This will instruct the browser to never send the cookie over HTTP. The purpose of this flag is to prevent the accidental exposure of a cookie value if a user follows an HTTP link.
The "Secure" flag should be set during every set-cookie. This will instruct the browser to never send the cookie over HTTP. The purpose of this flag is to prevent the accidental exposure of a cookie value if a user follows an HTTP link.


[https://wiki.mozilla.org/WebAppSec/Findings_Recommendations#Secure_Flag Code Examples]
[https://wiki.mozilla.org/WebAppSec/Secure_Coding_Details#Secure_Flag Code Examples]


===HTTP-Only Flag===
===HTTP-Only Flag===
Confirmed users
491

edits

Navigation menu