Okta Session Lifetime and Idle Time Calculation
Last Updated:
Overview
Okta calculates session lifetime and idle time to enforce security policies for user authentication. The session lifetime determines the maximum duration a session remains valid, while the idle time dictates how long a session can remain inactive before Okta prompts the user to authenticate again. Administrators require this information to configure appropriate global session policies and prevent unexpected session expirations.
Applies To
- Okta Identity Engine (OIE)
- Okta Classic Engine
- Global Session Policies
Solution
How does Okta calculate the maximum session lifetime?
The maximum session lifetime is the absolute maximum duration a user session can exist after initial authentication. Okta starts this timer the moment the user successfully signs in. Even if the user remains continuously active, Okta terminates the session and requires re-authentication once this maximum lifetime expires.
The idle time setting defines the maximum period of inactivity.
The idle time setting defines the maximum period of inactivity allowed within an active session. Okta tracks user activity, such as navigating between Okta dashboards or accessing Okta-integrated applications. If the user performs no recognized activity before the idle time limit expires, Okta terminates the session early.
How do session lifetime and idle time interact?
Okta evaluates both the maximum session lifetime and the idle time concurrently, terminating the session based on whichever limit the user reaches first. If a user remains active, the idle timer resets with each recognized action, but the maximum session lifetime timer continues counting down without resetting. If a user becomes inactive, the idle timer counts down and terminates the session if it reaches zero before the maximum session lifetime expires.
