Session limits
Decide how long people stay signed in. You can set three limits, for a whole application or, as a stricter override, for the members of one organization.
| Limit | What it does |
|---|---|
| Sign out after inactivity | A session that has not been refreshed for this long is signed out. |
| Maximum session length | Every session ends this long after sign-in, however active it is. |
| Concurrent sessions per user | When a user signs in over the limit, their oldest session is signed out. |
Each limit is optional. Leave a field blank for no limit. Values run from 5 minutes to 90 days, and the inactivity limit cannot be longer than the maximum session length.
Where to set them
- Application: open the application, then Sign-up and sign-in, and use the Sessions card.
- Organization: Organization security policy, then the Session limits card.
Who can change the organization limits
Administrators of the organization can change its session limits, and only for their own organization. Billing staff, application roles and other members can open the page and read the limits, but the fields stay read-only and the page says an administrator of the organization has to change them. Platform administrators can change any organization.
An organization's session timeout (on Organization security policy) can only make sessions shorter. It never makes an access token last longer than the platform default (one hour); a longer value still shortens the refresh period to that value.
How an organization override combines with the application
For each limit the stricter value wins. An organization can shorten what the application allows, but a looser organization value has no effect.
An organization's limits apply to its own members in that organization's context: when they sign in to one of the organization's applications, and when it is the only organization they belong to. They never shorten the sessions a person holds in another organization or on the platform, and platform staff are not subject to them. Someone who belongs to several organizations gets each organization's limits only where that organization is the one they are signing in to.
What happens when a limit is reached
- Inactivity or maximum length: the next time the app asks for a fresh access token, the request is refused and the person signs in again. Their session is revoked, so tokens already issued stop working for services that check them with the platform.
- Concurrent sessions: the oldest session for that application is signed out at the moment of the new sign-in.
Good to know
- Inactivity is measured from the last token refresh. An app that keeps a valid access token without refreshing counts as inactive once that token expires, so access tokens are shortened to never outlive the inactivity limit or the time left in the session.
- Changes apply to the next sign-in or refresh. Existing sessions already past a new limit are signed out the next time they refresh.
- Every change is recorded in the audit log.
- Each person can see and end their own sessions under Account security.
API
- Application:
GETandPUT /platform/api/v1/admin/applications/{applicationId}/session-policy - Organization:
GETandPUT /platform/api/v1/console/session-policy?organizationId={id}
Body: idleTimeoutMinutes, absoluteLifetimeMinutes, maxConcurrentSessions (all nullable). A PUT replaces the whole policy, and a null field clears that limit.