Cookie Flags
Last updated
Was this helpful?
Last updated
Was this helpful?
Instructs browser to only send the cookie via HTTPS, preventing attacks.
None
Sends the cookie everywhere. Some browsers will block a cookie with this settings if the Secure
flag is not set.
Lax
Doesn't send the cookie on cross-site requests. It will only send it when a user manually enters the URL in the browser or clicks a link to the site.
Strict
Sends the cookie only on same-origin requests.
Dissallows scripts from accessing the cookies via the DOM document.cookie
object. Helps against attacks.
Instructs browsers whether cookies are sent with . Helps against attacks.