Manage Sessions

View and revoke user sessions in Authority.

Overview

Sessions represent active user logins. Each session tracks:

  • Device information

  • IP address

  • Login time

  • Last activity

User Self-Service

View Active Sessions

Users can see their sessions in the profile:

  1. Click profile name

  2. Select Security Settings

  3. View Active Sessions

User Profile

Revoke Session

  1. Find the session in the list

  2. Click Revoke

  3. Confirm revocation

The session is immediately invalidated.

Admin Management

View User Sessions

Response:

Revoke Specific Session

Revoke All User Sessions

This forces the user to re-authenticate on all devices.

Session Settings

Configuration

Variable
Default
Description

SESSION_DURATION_DAYS

7

Maximum session lifetime

IDLE_TIMEOUT_MINUTES

30

Timeout after inactivity

SINGLE_SESSION

false

Allow only one active session

Single Session Mode

Force users to have only one active session:

When enabled, logging in from a new device revokes existing sessions.

Idle Timeout

End sessions after inactivity:

Users are logged out after 30 minutes of inactivity.

Session Information

Each session captures:

Field
Description

ip_address

Client IP at login

user_agent

Browser/app information

device

Parsed device type

location

Approximate location (if enabled)

created_at

Login timestamp

last_activity

Last request timestamp

Security Alerts

Notify on New Session

Email users about new logins:

Email content:

Suspicious Session Detection

Alert on unusual patterns:

  • Login from new location

  • Multiple simultaneous sessions

  • Login outside business hours

Bulk Session Management

Revoke All Sessions (System-Wide)

For security incidents:

Revoke by Criteria

Session in OAuth Flow

Token and Session Relationship

Revoking a session can optionally revoke associated tokens:

SSO Session

For single sign-on, a single session can authorize multiple clients.

Monitoring

Active Session Count

Session Audit Events

Event
Description

session.created

New login

session.refreshed

Session activity

session.revoked

Session ended

session.expired

Session timed out

Next Steps

Last updated

Was this helpful?