# Limit users sessions

As a security measure, Akamas lets you enforce a limit on the number of concurrent sessions per user, by default, this is set to terminate the oldest sessions and keep only a restricted number alive. If you wish to change the behavior limit, you can do so by configuring the Akamas realm in Keycloak.

The section [Local Users](https://docs.akamas.io/akamas-docs/3.6/managing-akamas/users-management/limit-users-sessions/local-users) explains how to properly configure users stored in Keycloak. The page [Identity Provider users](https://docs.akamas.io/akamas-docs/3.6/managing-akamas/users-management/limit-users-sessions/identity-provider-users) explains how to apply the same limit for users managed by an Identity Provider.
