Skip to content
Calcrivo

Session Timeout Calculator

Choose idle and absolute session timeouts, and see the re-authentication rate, hijack window and PCI or NIST compliance they give you.

Inputs

minutes
minutes
minutes
hours
users
bytes

Re-Authentications per User per Day

1

Stolen-Session Usable Window

15m

Sessions Held Including Expiring Ones

6,250

Session Store Memory

4.77 MiB

Meets the PCI DSS 15-Minute Idle Rule

Yes

Meets NIST SP 800-63B AAL2

Yes

Step by step

  1. Values used

    Idle timeout = 15 minutes; Absolute timeout = 480 minutes; Typical gap between user actions = 6 minutes; Hours the application is used per day = 9 hours; Concurrent users = 5,000 users; Server-side state per session = 800 bytes

  2. Session Timeout

    When users pause longer than the idle timeout they are logged out roughly every (gap + idle) minutes; otherwise the absolute timeout alone forces re-authentication.

  3. Compliance thresholds

    PCI DSS requires re-authentication after 15 minutes idle; NIST SP 800-63B sets 30 minutes inactivity and 12 hours absolute for AAL2, and 15 minutes with 12 hours for AAL3.

  4. Re-Authentications per User per Day

    = 1

  5. Stolen-Session Usable Window

    = 15

  6. Sessions Held Including Expiring Ones

    = 6,250

  7. Session Store Memory

    = 5,000,000.00

  8. Meets the PCI DSS 15-Minute Idle Rule

    = Yes

  9. Meets NIST SP 800-63B AAL2

    = Yes

How it works

Two timers run at once. The idle timer is reset by activity and defines how long a stolen session token remains useful; the absolute timer ignores activity and caps total session age. Which one users actually notice depends on whether their think time exceeds the idle setting. The idle timeout is the length of the window an attacker gets from a hijacked cookie on an unlocked laptop, and it is also the setting users complain about most, so it is worth choosing deliberately rather than inheriting a framework default.

Formulas

Session Timeout

When users pause longer than the idle timeout they are logged out roughly every (gap + idle) minutes; otherwise the absolute timeout alone forces re-authentication.

idle timeout
Inactivity allowed before the session is destroyed
absolute timeout
Maximum session age regardless of activity
gap
Typical think time between user actions

Compliance thresholds

PCI DSS requires re-authentication after 15 minutes idle; NIST SP 800-63B sets 30 minutes inactivity and 12 hours absolute for AAL2, and 15 minutes with 12 hours for AAL3.

AAL2
Authenticator assurance level 2 — multi-factor authentication required
12 hours
720 minutes, the AAL2 and AAL3 reauthentication ceiling

Frequently Asked Questions

How is Session Timeout calculated?

When users pause longer than the idle timeout they are logged out roughly every (gap + idle) minutes; otherwise the absolute timeout alone forces re-authentication. Two timers run at once. The idle timer is reset by activity and defines how long a stolen session token remains useful; the absolute timer ignores activity and caps total session age. Which one users actually notice depends on whether their think time exceeds the idle setting.

Why does Session Timeout matter?

The idle timeout is the length of the window an attacker gets from a hijacked cookie on an unlocked laptop, and it is also the setting users complain about most, so it is worth choosing deliberately rather than inheriting a framework default.

What values do I need to enter?

This calculator takes 6 inputs: Idle timeout, Absolute timeout, Typical gap between user actions, Hours the application is used per day, Concurrent users, Server-side state per session. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.

Do I need both an idle and an absolute timeout?

Yes. Idle-only sessions can be kept alive indefinitely by any background polling the page does, and absolute-only sessions leave an abandoned browser logged in for hours. OWASP recommends both, with the absolute timeout tied to how long a legitimate session could plausibly need.

What does PCI DSS require for session timeouts?

PCI DSS requires that an idle session in the cardholder data environment be re-authenticated after no more than 15 minutes. NIST SP 800-63B is separate and stricter in its own way: 30 minutes of inactivity and 12 hours absolute at AAL2, tightening to 15 minutes of inactivity at AAL3.

You might also need