Skip to main content

Sessions

LumoAuth manages user sessions to control how long users stay authenticated and tracks active sessions for security visibility.


Session Types

TypeDescriptionStored
Login SessionServer-side session after user authenticatesServer (cookie-based)
Access TokenShort-lived JWT for API accessClient-side
Refresh TokenLong-lived token to obtain new access tokensServer + Client
Remember MeExtended session for returning usersServer (cookie-based)

Session Configuration

Configure session settings at /t/{tenantSlug}/portal/configuration/auth-settings:

SettingDescriptionDefault
Session LifetimeDuration of login sessions24 hours
Access Token LifetimeJWT access token validity1 hour
Refresh Token LifetimeRefresh token validity30 days
Idle TimeoutSession expires after inactivity30 minutes
Remember Me DurationExtended session for "remember me"30 days
Concurrent SessionsMax simultaneous sessions per userUnlimited

Viewing Active Sessions

As an Admin

  1. Go to /t/{tenantSlug}/portal/access-management/users
  2. Select a user
  3. View the Sessions tab to see:
    • Active sessions with IP, device, and location
    • Last activity timestamp
    • Session creation time

As a User

Users can view their active sessions in the self-service account page and revoke sessions they don't recognize.


Revoking Sessions

Revoke a Single Session

Admins can revoke individual sessions from the user detail page.

Revoke All User Sessions

Force a user to re-authenticate by revoking all their sessions:

curl -X POST https://your-domain.com/t/{tenantSlug}/api/v1/users/{userId}/sessions/revoke-all \
-H "Authorization: Bearer {admin_token}"

Token Revocation

Revoke specific tokens:

# Revoke a refresh token
curl -X POST https://your-domain.com/t/{tenantSlug}/api/v1/oauth/revoke \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "token={refresh_token}&client_id={client_id}&client_secret={client_secret}"

Session Security

FeatureDescription
Session fixation protectionSessions are regenerated after login
Secure cookiesSession cookies use Secure, HttpOnly, SameSite flags
IP binding (optional)Sessions can be bound to the originating IP
Concurrent session limitsLimit how many devices a user can be logged into
Forced re-authenticationRequire re-auth for sensitive operations