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

Logout URL

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

A logout URL is the address an application uses to start or complete a user sign-out request. It usually redirects the browser to an identity provider or session endpoint so the authentication session can be ended, local cookies cleared, and single sign-out coordinated where supported.

What a logout URL does

A logout URL is part of the application’s sign-out flow, so it is more than a convenience link. It typically triggers session termination, browser redirection, and, where supported, coordinated sign-out across the identity provider and connected applications.

Because logout is a state-changing security action, the URL should be treated as a controlled endpoint, not a general navigation target. Its behaviour determines whether local sessions end cleanly, whether upstream authentication state is cleared, and whether the browser is sent to a trusted destination after sign-out.

How logout URLs fit into session and identity flows

In many implementations, the logout URL is the application entry point for ending an authenticated browser session. That may mean clearing application cookies, invalidating a server-side session, or invoking a federated logout endpoint so the identity session is also completed. The exact behaviour varies across vendors and protocols, so teams should verify whether the URL performs local logout only or participates in single sign-out.

The sign-out path often touches authentication state, redirect handling, and session lifecycle. When it is wired correctly, the user leaves with their active session removed and the application avoids leaving stale browser state behind. When it is wired loosely, the user may appear signed out locally while an upstream session remains usable.

Why logout URLs matter for application security

A logout URL sits at the boundary between a live session and a closed one, which makes it relevant to both user experience and trust. If the redirect target is not constrained, it can create an open-redirect style issue after sign-out. If session invalidation is incomplete, a browser back button, cached state, or a still-valid server session can undermine the apparent logout.

Logout also matters in federated environments because a user often expects one action to end access everywhere. In reality, single sign-out is not universal, and some systems only clear the local application session. That gap is operationally important because the browser may still hold an identity session that can be reused by other apps or on the next visit.

Common implementation details and failure modes

Practitioners usually need to decide whether the logout URL accepts a return destination, whether that destination is allowlisted, and whether the request must be protected against unexpected cross-site invocation. Those choices shape whether logout behaves predictably and safely in browser-based applications.

The most common failure modes are weak redirect control, partial session termination, and inconsistent browser-state cleanup. A sign-out flow that only clears a client-side cookie can leave server-side access intact, while a federated flow that does not complete upstream logout can leave other sessions alive.

Risk and Threat Considerations

Logout URLs create security exposure when sign-out is treated as a simple navigation step rather than a trust boundary. Weak redirect handling, incomplete session revocation, or assumptions about single sign-out can leave a session usable after the user believes access has ended.

Failure mechanism: An attacker or flawed integration can exploit a permissive logout flow to steer users to untrusted destinations, preserve a valid session token, or rely on leftover authentication state in another application or browser context.

Impact: The result can be session persistence after logout, misleading user confidence, redirect abuse, or continued access through a session that was never fully terminated.

Standards & Framework Alignment

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

NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-2 — Identification and Authentication (Organizational Users)Logout URLs end authenticated user sessions and affect access state.
AC-12 — Session TerminationThis control directly covers ending sessions when users sign out.
IA-5 — Authenticator ManagementLogout often depends on clearing or invalidating session-related credentials.
Recommendation — Verify that logout fully terminates authenticated user access paths. Implement controlled session termination for every logout path. Revoke or invalidate session-related authenticators during sign-out.
CIS Controls v8CIS-5 — Account ManagementSign-out is part of account session lifecycle and access removal.
Recommendation — Enforce session end and account lifecycle controls around logout.

Practitioner Guidance

Why practitioners should care: Logout URLs should be designed and tested as part of the authentication lifecycle, not as a cosmetic UI link. A well-formed logout flow should clearly define what gets terminated locally, what gets revoked upstream, and which post-logout destinations are permitted.

What to watch for: Check whether the application truly ends the session state it created, whether redirects are restricted to trusted destinations, and whether the browser can re-enter an authenticated state immediately after sign-out. If federated logout is in play, confirm the expected behaviour with the identity provider and the application together, not separately.

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 November 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org