Join our Newsletter — 33% off our NHI Course
Authentication, Authorisation & Trust

SameSite Cookies

← Back to Glossary
By NHI Mgmt Group Updated October 29, 2026 Domain: Authentication, Authorisation & Trust

SameSite Cookies are browser cookies that limit when the browser sends them with cross-site requests. The SameSite attribute can be set to Strict, Lax or None, which helps control whether session cookies are included in embedded content, links or form submissions and reduces cross-site request forgery risk.

What SameSite Cookies Do

SameSite is a cookie attribute, not a separate cookie type. It tells the browser when to include a cookie on cross-site requests, so the server can limit where session cookies travel and reduce ambient cross-site exposure.

In practice, SameSite changes browser behaviour at the boundary between a user’s current site and another site that tries to trigger a request. That makes it one of the most important cookie attributes for controlling whether authentication state is sent during embedded content, navigations, and form submissions.

SameSite Modes and Their Security Meaning

The three modes, Strict, Lax, and None, express different trust assumptions. Strict is the most restrictive, Lax permits some top-level navigation scenarios, and None allows cross-site inclusion when the cookie is marked for it and other cookie requirements are met.

Those differences matter because the browser is enforcing the policy before the request reaches the application. A site that chooses the wrong mode may unintentionally send a session cookie in a context it did not intend, while an overly strict setting can break legitimate login flows, embedded functionality, or federated journeys.

How SameSite Supports Browser-Side Request Control

SameSite is a browser-side control over credential forwarding, so it works best when applications also rely on server-side request validation. It reduces one common route for unsolicited state-changing requests, but it does not replace CSRF tokens, origin checks, or careful session handling.

It is also important to remember that SameSite is evaluated by the browser and by the shape of the request. Edge cases can arise around redirects, embedded content, browser differences, and changing standards behaviour, so teams should test the exact flows their application depends on rather than assuming every request pattern will behave identically.

Where SameSite Fits in Modern Web Security

SameSite is now part of the baseline cookie security conversation alongside Secure, HttpOnly, prefixes, and session design. It is especially useful for session cookies, because those cookies carry the authority of the logged-in user and are the most sensitive to cross-site leakage or unintended inclusion.

For teams that want a deeper reference point, the Cookie Security Guide covers safe use of cookie attributes, while the CSRF Prevention Guide shows how SameSite fits into a broader anti-CSRF strategy. The Security Headers Guide places it alongside other browser-enforced controls that help harden web sessions.

Risk and Threat Considerations

SameSite reduces one class of cross-site request abuse, but it is easy to misconfigure or over-trust. If a sensitive cookie is left permissive where a restrictive setting was intended, an attacker can sometimes use a cross-site request path to trigger actions with the victim’s authenticated context.

Failure mechanism: The browser sends a session cookie on a cross-site request because the cookie policy, request type, or application flow allows it, and the server treats that request as fully authenticated.

Impact: The result can be unauthorized state change, CSRF-style account action, session misuse, or broader trust boundary failure for browser-mediated workflows.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP ASVS and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP ASVSV6 — AuthenticationSameSite affects how session cookies participate in browser authentication flows.
V7 — Session ManagementSameSite is a session-cookie control that changes when browser-held session state is sent.
Recommendation — Verify that session cookies use the intended SameSite policy for each authentication flow. Validate cookie session settings so browsers do not send session state outside intended contexts.
NIST SP 800-53 Rev 5SC-23 — Session AuthenticitySameSite helps constrain browser session use across sites and supports session-bound request integrity.
IA-5 — Authenticator ManagementCookie-based session tokens are authenticator material whose handling and protection must be governed.
AC-10 — Concurrent Session ControlSameSite interacts with session handling and browser-mediated reuse of authenticated state.
Recommendation — Apply session-authenticity controls to limit unintended cross-site use of authenticated sessions. Manage session-cookie lifecycle and protection so authenticators are not exposed beyond intended contexts. Constrain browser session handling so authenticated state is only used where intended.

Practitioner Guidance

Why practitioners should care: SameSite is a session-control decision, not a cosmetic header choice. Treat it as part of the application’s authentication and request-authorisation design, especially for login state, sensitive transactions, and any feature that accepts browser-originated requests.

What to watch for: Verify that each cookie’s setting matches its real usage, then test the full set of user journeys, including redirects, embedded flows, and third-party integrations. Where business requirements demand cross-site inclusion, make sure the broader anti-CSRF design still provides compensating protection.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org