PingAM

Session quotas

AM lets you limit the number of active sessions for a user by setting session quotas. Use this feature, for example, to prevent a user from logging in from more than two devices at once, mitigating scenarios where user passwords could’ve been compromised.

AM’s support for session quotas requires server-side authenticated sessions.

Common use cases

Match your situation to the quota configuration:

  • Protecting session capacity: A burst of sign-ons, for example, after an outage, or from a shared account, risks exhausting the session store. Set a maximum number of active sessions per user so a single user can’t consume disproportionate capacity. Learn more in Secure sessions.

  • Limiting concurrent devices per user: A user signs on from more devices than your policy allows, and each open session extends the exposure window if their credentials are compromised. Set the active user sessions limit for the realm to the number of devices your policy permits. Learn more in Configure session quotas and exhaustion actions.

  • Choosing what happens when the quota is reached: When a user at their quota signs on again, AM must either deny the new session or remove an existing one. Choose the exhaustion action that fits your policy: deny access, destroy the next session to expire, destroy the oldest session, or destroy all the user’s sessions. Learn more in Configure session quotas and exhaustion actions.

  • Custom exhaustion behavior: None of the built-in exhaustion actions fit your requirements. For example, notifying the user or an administrator when sessions are removed. Implement a custom session quota exhaustion action. Learn more in Customize session quota exhaustion actions.

Configure session quotas and exhaustion actions

The session quota applies to all authenticated sessions opened for the same user (as represented by the user’s universal identifier). To configure session quotas and exhaustion in AM, perform the following steps:

  1. In the AM admin UI, go to Configure > Global Services > Sessions > Session Quotas.

  2. From the Enable Quota Constraints drop-down menu, choose ON.

  3. On the Set Resulting behavior if session quota exhausted property, set one of the following values:

    DENY_ACCESS

    Deny access, preventing the user from creating an additional authenticated session.

    DESTROY_NEXT_EXPIRING

    Remove the next authenticated session to expire, and create a new session for the user. The next session to expire is the session with the minimum time left until expiration.

    This is the default setting.

    DESTROY_OLDEST_SESSION

    Remove the oldest authenticated session, and create a new session for the user.

    DESTROY_OLD_SESSIONS

    Remove all existing authenticated sessions, and create a new session for the user.

    If none of these session quota exhaustion actions fit your deployment, you can implement a custom session quota exhaustion action. Find an example in Customize session quota exhaustion actions.

  4. Go to Realms > realm name > Services > Session.

  5. On the Set Active User Sessions property, configure the maximum number of concurrent authenticated sessions a user can have.

    You can also change this setting globally for the AM site in Configure > Sessions > Dynamic Attributes.

  6. Click Save Changes.