# Client session idle or client session Max time is not working only SSO Session Max time is working

**URL:** <https://forum.keycloak.org/t/client-session-idle-or-client-session-max-time-is-not-working-only-sso-session-max-time-is-working/14974>\
**Category:** Configuring the server\
**Created:** [April 14, 2022, 10:31am UTC](https://forum.keycloak.org/t/client-session-idle-or-client-session-max-time-is-not-working-only-sso-session-max-time-is-working/14974 "2022-04-14T10:31:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankit\_gupta](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@ankit\_gupta](https://forum.keycloak.org/u/ankit_gupta)\
**Post date:** [April 14, 2022, 10:31am UTC](https://forum.keycloak.org/t/client-session-idle-or-client-session-max-time-is-not-working-only-sso-session-max-time-is-working/14974/1 "2022-04-14T10:31:06Z")

</div>

In the realm settings, under token tab , i am trying to set

- Client Session Idle

- Client Session Max  
so that i can show session timeout in my application based upon the time i set in above field.  
But even after giving Client Session Idle and Client Session Idle time , i am not getting signout automatically.  
It is always taking time mentioned in “SSO Session Max” to sign out the user.  
below are the timing i have mentioned –

- Client Session Idle - 3min

- Client Session Max - 5min

- SSO Session Max - 10min

the application is getting logout after 10min and not 5min irrespective of the user activity.

In the keycloak documentation , it is mentioned that it will take value mentioned in Client Session Max if SSO Session Max value is not mentioned.

What i need to implement is to show a popup when session timeout to the user so that if they want to stay in the application they can do that.
