Confirmed users
491
edits
| 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/ | [https://wiki.mozilla.org/WebAppSec/Secure_Coding_Details#Secure_Flag Code Examples] | ||
===HTTP-Only Flag=== | ===HTTP-Only Flag=== | ||