# Web UI Session Timeout (with Keycloak)

**URL:** https://forums.suse.com/t/web-ui-session-timeout-with-keycloak/14964
**Category:** SUSE Rancher Prime
**Created:** [August 2, 2019, 2:12pm UTC](https://forums.suse.com/t/web-ui-session-timeout-with-keycloak/14964 "2019-08-02T14:12:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![wtopace](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/wtopace/32/3738_2.png) [@wtopace](https://forums.suse.com/u/wtopace)
#### Post date: [August 2, 2019, 2:12pm UTC](https://forums.suse.com/t/web-ui-session-timeout-with-keycloak/14964/1 "2019-08-02T14:12:12Z")

</div>

I’m running Rancher 2.2.4 with Keycloak integration and have a requirement to have a session timeout after some time period of inactivity. I’m not seeing anywhere in the UI or API to configure this.

I believe this was supported in 1.6 with the following setting: [https://rancher.com/docs/rancher/v1.6/en/configuration/access-control/#configuring-session-timeouts](https://rancher.com/docs/rancher/v1.6/en/configuration/access-control/#configuring-session-timeouts)

Any help with 2.x would be great!

---

<div class="post-metadata">

### Author: ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)
#### Post date: [August 2, 2019, 3:27pm UTC](https://forums.suse.com/t/web-ui-session-timeout-with-keycloak/14964/2 "2019-08-02T15:27:18Z")

</div>

The session timeout in 2.x is 16 hours and not configurable. A session is just an API key with a TTL, so the time is controlled by the API caller/hardcoded into the UI.

In neither 1.x or 2.x is it really an “inactivity” timeout. Everything is live updating and generally preloaded from the server, so there is no clear definition of what activity looks like. The token is just no longer valid after 16 hours.
