Join our Newsletter — 33% off our NHI Course
Home› FAQ› Authentication, Authorisation & Trust› How does Logon Session work?
Authentication, Authorisation & Trust

How does Logon Session work?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 18, 2026 Domain: Authentication, Authorisation & Trust

A Logon Session is the period of authenticated access that begins after a successful login and ends on timeout, logout or revocation. It lets the system reuse identity state without asking for credentials on every request. Defenders should monitor session lifetime, idle timeout, token reuse and anomalous session activity to limit hijacking and persistence.

What a logon session is doing behind the scenes

A logon session is the system’s temporary proof that authentication already succeeded. After login, the operating system or application keeps state so later requests can be authorised without re-entering credentials each time. That state is usually represented by a session identifier, cookie, token, ticket or similar artefact, and its trust depends on how well the system binds, stores and expires it.

The important design point is that a session is not the same thing as a password or login event. It is the reusable access state created by that event. In practice, the session carries the security decision forward, so its protection becomes as important as the original authentication step. A weak session lifecycle can turn one successful login into prolonged unauthorised access.

For a practical reference on token and cookie handling, see the Token and Session Security Guide, which covers lifetimes, validation and revocation patterns that sit directly behind session behaviour.

How session state is created, reused and ended

Session creation usually happens immediately after successful authentication. The server or client issues a session artefact and ties it to the authenticated identity, along with metadata such as issue time, expiry time, idle timeout, device or browser context, and sometimes assurance level. On subsequent requests, the system checks that artefact instead of redoing the full login flow.

Session reuse is what makes applications usable, but it also creates a control boundary. If the session remains valid, the system assumes the same authenticated subject is still present. That is why timeout policy, reauthentication rules, and revocation handling matter: they define how long the access decision survives after the original login.

Termination can occur in several ways. A session may expire naturally, end because the user logs out, or be revoked by the system when risk changes, credentials are reset, an administrator intervenes, or a security condition invalidates trust. Good implementations make termination reliable and consistent across all active copies of the session state.

Why sessions become a security control point

Sessions are attractive because they reduce friction, but they also concentrate trust. If an attacker steals a live session token or cookie, they may not need the original password at all. That is why defenders watch for reuse from new locations, unusual duration, rapid replay, or activity that does not match the session’s normal pattern.

The main failure modes are weak expiry, excessive session lifetime, poor invalidation, and storage of session material in places that are easy to copy or intercept. Session fixation, replay, token theft and pass-the-cookie style abuse all exploit the fact that the system trusts the existing session state. This is also why sender-constraining and token binding techniques matter when the platform supports them.

For practitioner guidance on request-to-request trust, OWASP ASVS gives a useful baseline for authentication, session and access-control expectations, while the OWASP Cheat Sheet Series provides implementation guidance on session handling and related controls. If tokens can be replayed, RFC 9449: OAuth 2.0 Demonstrating Proof of Possession shows the sender-constraining model that reduces the value of a stolen bearer token.

Risk and Threat Considerations

Logon sessions are a common persistence target because they let an attacker keep using a trusted access state after the initial login path is gone. The risk increases when session duration is long, revocation is slow, or session artefacts can be reused across devices, browsers or environments without strong binding.

Failure mechanism: An attacker steals, replays or fixes a valid session artefact, then continues operating as the authenticated user until expiry or revocation. Weak monitoring, broad token reuse and poor binding to context make the compromise harder to notice and easier to sustain.

Impact: The attacker can retain access without knowing the password, move laterally through trusted workflows, and extend the compromise window beyond account-reset or password-change actions. In higher-value environments, one exposed session can become a durable foothold for data access, privilege misuse or persistence.

Standards & Framework Alignment

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

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

FrameworkControl / ReferenceRelevance
OWASP ASVSV6 — AuthenticationSessions depend on strong authentication state and reauthentication rules.
V7 — Session ManagementThe subject is the lifecycle, reuse and termination of session state.
V8 — AuthorizationA live session carries access decisions that must remain bounded and correct.
Recommendation — Apply V6 to control how authenticated state is established and maintained. Apply V7 to enforce secure creation, timeout, invalidation and renewal of sessions. Apply V8 to ensure session-backed requests only receive permitted access.
NIST SP 800-63Digital Identity GuidelinesSessions extend authenticated identity assertions and need assurance-aligned lifecycle handling.
Recommendation — Use 800-63 session guidance to align lifetime and reauthentication with assurance needs.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementSession tokens and related authenticators need controlled lifecycle and revocation.
Recommendation — Use IA-5 to manage issuance, rotation, revocation and protection of session-bearing authenticators.

Practitioner Guidance

What to verify: Check that session expiry, idle timeout and logout behavior are actually enforced everywhere the session is accepted, not just in the main application flow. Verify that revocation invalidates all active copies of the session state and that backup paths, API routes and mobile clients do not keep accepting a stale session.

What to measure: Track session lifetime by role or sensitivity, the rate of unexpected session reuse, and the volume of sessions that outlive their intended idle or absolute timeout. A useful indicator is whether anomalous activity can be tied back to a specific issued session and terminated quickly.

Practitioner takeaway: Treat the session as the reusable security decision, not just a convenience layer, because the quality of expiry, binding and revocation determines how far a single successful login can be extended.

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