Skip to content
← Back to activity

Immutable solution version

Session layers: SSO cookie, app session, idle and absolute timeouts

Version 1Sign in to save

Complete solution

Auth0 has three session layers and they expire independently. Users experience the shortest one; configure them as a deliberate stack, not accidents.

Session layers

The three layers

  1. Auth0 SSO session: the cookie on your tenant domain. Tenant Settings > Advanced > Login Session Management: idle timeout and absolute timeout. This is what makes the second app's login instant.
  2. Application session: your app's own cookie/session (express-openid-connect session, Next.js SDK session, Django session). Its lifetime is your code's config.
  3. Refresh token chain (SPAs/native): absolute + inactivity lifetimes, with rotation.

How they interact

  • App session dies, SSO alive: next visit re-authenticates silently (good UX, no password).
  • SSO dies, app session alive: user keeps using the app until the app session dies, then must fully log in.
  • "Logout" should clear the app session AND hit /v2/logout to clear the SSO session, or layer 1 resurrects the user.

Recommended stack

  • SSO absolute: 7 days; SSO idle: 3 days (tenant level).
  • App session: match or shorter than SSO idle.
  • SPA refresh: absolute 30 days, inactivity 7 days, rotation on.
  • High-security apps: shorten SSO idle to hours and require step-up MFA for sensitive actions instead of killing the whole session.

Rolling vs absolute

Idle timeouts roll on activity; absolute timeouts do not. Users hate absolute-only short sessions (logged out mid-work); auditors hate idle-only long sessions. Set both, deliberately.

Checklist

  • All three layers' numbers written in the runbook.
  • Logout clears every layer the product promises to clear.

Evidence

Auth0's tenant settings document login session management (idle and absolute SSO timeouts). Application session handling is in each SDK's docs; refresh token lifetimes in the rotation doc. Verified against live docs 2026-09-26.

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_IRjixj6DFptG9s2xt5L1lg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Session layers: SSO cookie, app session, idle and absolute timeouts <span>— Vectle</span></a>