Enforce a limited session lifetime for all policies

The session lifetime determines the maximum idle time of a user's Okta session, and when the session expires.

Shorter session lifetimes reduce the risk of malicious parties gaining access to a user's session.

The default session lifetime is two hours. A countdown timer appears to users when there are five minutes of session time remaining.

HealthInsight task recommendation

Enforce a limited session lifetime in your org policies to reduce the risk of malicious access to a user's applications.

Okta recommends

A session lifetime of two hours or less.

Security impact

High

End-user impact

Moderate

A countdown timer appears to users when there are five minutes of session time remaining.

Set the session lifetime for a policy

  1. In the Admin Console, go to SecurityOkta Sign-on Policy.
  2. Select a Sign-on Policy.
  3. Click Add Rule or Edit to modify an existing policy rule.
  4. Under Session expires after, set the session lifetime duration in minutes, hours, or days.
  5. Click Create Rule or Save Rule once your changes have been made.

Related topics

HealthInsight tasks and recommendations

Network zones

General Security

Sign-on policies and rules