Session Timeout
Session timeout is a security mechanism that ends an authenticated session after a set period, often automatically logging the user out. It is commonly triggered either by a period of inactivity or by reaching a maximum overall session length, at which point the user typically must sign in again.
A session timeout is a session management control that terminates an authenticated session based on a configured time limit, requiring reauthentication to establish a new session. NIST SP 800-63B describes two distinct types: an overall (absolute) timeout that caps the total duration of a session following authentication, and an idle (inactivity) timeout that ends a session after a period without activity on the client connection. Default and configurable values vary by platform (for example, AWS Systems Manager sessions default to 20 minutes of inactivity and are configurable between 1 and 60 minutes, and Microsoft Dynamics 365 Business Central uses a default SessionTimeout of 00:20:00). This control governs the lifetime of an already-authenticated session and is distinct from the initial authentication and authorization decisions; exact behavior depends on vendor and deployment configuration.
Why it matters
Session timeouts limit the window during which an authenticated session can be abused if a device is left unattended, a session token is stolen, or a user simply walks away from a workstation. Because the control governs the lifetime of an already-authenticated session, it addresses risks that the initial authentication decision cannot: even a strongly authenticated session becomes a liability if it persists indefinitely. By capping session duration, timeouts reduce the exposure created by unlocked or shared devices and by long-lived credentials.
NIST SP 800-63B describes two complementary controls that address different threats. An overall (absolute) timeout caps the total duration of a session following authentication, forcing reauthentication regardless of activity, which bounds how long a compromised or hijacked session can remain valid. An idle (inactivity) timeout ends a session after a period without activity, which addresses the abandoned-session scenario. Deploying only one leaves a gap: an inactivity timeout alone does nothing to bound an actively abused session, while an absolute timeout alone may leave an idle session open for its full configured lifetime.
Getting the value right is a balance between security and usability, and it depends heavily on context. Overly aggressive timeouts frustrate users and can drive risky workarounds, while overly permissive ones extend the attacker's window. Because defaults and configurable ranges vary by platform, organizations should set timeouts deliberately against their own risk tolerance rather than relying on vendor defaults.
Who it's relevant to
Inside Session Timeout
Common questions
Answers to the questions practitioners most commonly ask about Session Timeout.
