# Angular application redirecting to confirm logout page even if the user is using the application and active

**URL:** <https://forum.keycloak.org/t/angular-application-redirecting-to-confirm-logout-page-even-if-the-user-is-using-the-application-and-active/24593>\
**Category:** Getting advice\
**Created:** [February 15, 2024, 4:58pm UTC](https://forum.keycloak.org/t/angular-application-redirecting-to-confirm-logout-page-even-if-the-user-is-using-the-application-and-active/24593 "2024-02-15T16:58:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohit9133](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rohit9133](https://forum.keycloak.org/u/rohit9133)\
**Post date:** [February 15, 2024, 4:58pm UTC](https://forum.keycloak.org/t/angular-application-redirecting-to-confirm-logout-page-even-if-the-user-is-using-the-application-and-active/24593/1 "2024-02-15T16:58:21Z")

</div>

Hi Team,

I am using keycloak with angular application in which i have given  
Client session max = 1 hour

Problem:  
User is actively using the application for 1 hour. After which user is force to confirm logout page and asked to logout when above time expires.

Is there any way we can refresh the session and prevent this to happen?

Thanks  
Rohit

---

<div class="post-metadata">

**Author:** ![jean.silga](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@jean.silga](https://forum.keycloak.org/u/jean.silga)\
**Post date:** [May 16, 2024, 9:13am UTC](https://forum.keycloak.org/t/angular-application-redirecting-to-confirm-logout-page-even-if-the-user-is-using-the-application-and-active/24593/2 "2024-05-16T09:13:54Z")

</div>

> [@rohit9133](#):
>
> Client session max = 1 hour

Your settings means this: In any circonstances, no session can last more than 1 hour. So Keycloak is doing exactly what you asked it to do.  
**Client session max** sets the maximum duration of the session, regardless of user activity.  
**SSO Session Idle** in the other hand, sets the maximum duration a session can be inactive before being expired. That setting may be what you are looking for.  
By default, keycloak uses these settings:  
Client session max = 10 hours  
SSO Session Idle = 30 mns
