> For the complete documentation index, see [llms.txt](https://docs.coherent.global/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coherent.global/identity-and-access-management/session-timeouts.md).

# Session timeouts

For more information, see the Keycloak Server Administration Guide.

{% embed url="<https://www.keycloak.org/docs/latest/server_admin/index.html#managing-user-sessions>" %}

## Update session settings for tenant

1. Sign in to the target Spark tenant. Access the **Keycloak console** from the [Navigation menu](https://docs.coherent.global/navigation/navigation-menu.md#user-menu).
2. Select **Realm settings** on the left sidebar.
3. Select the **Sessions** tab.
4. **SSO Session Idle** and **SSO Session Max** control the session settings for the entire tenant. These settings apply universally and act as a cap on top of any client-specific configurations.
5. Update these values in alignment with your organization's preferences and requirements.
6. Click **Save**.

## Update session settings per client

Important clients to be aware of:

* `academy` for [Coherent Academy](https://coherentacademy.coherent.global/).
* `insights` for [Coherent Control](https://www.coherent.global/platform/control) and [Coherent Insights](https://www.coherent.global/platform/insights).
* `product-factory` that includes [Coherent Spark](https://docs.coherent.global/readme.md) and [Coherent Assistant](https://marketplace.microsoft.com/en-us/product/office/wa200006757).

The following steps are only required if it is necessary to modify the session settings per Coherent application.

1. Sign in to the target Spark tenant. Access the **Keycloak console** from the [Navigation menu](https://docs.coherent.global/navigation/navigation-menu.md#user-menu).
2. Select **Realm settings** on the left sidebar.
3. Select the **Sessions** tab.
4. **Client Session Idle** and **Client Session Max** control the default session settings per application.
5. If necessary, change the default to be something different from the **SSO Session** settings.
6. Select **Save**.
7. Select **Clients** in the sidebar.
8. Select the application of interest, for example `product-factory`.
9. Select the **Advanced** tab.
10. Under **Advanced settings**, **Client Session Idle** and **Client Session Max** should contain **Inherits realm settings**. The settings from **Realm settings Client Session Idle** and **Client Session Max** will be used.
11. If necessary, the settings for the **Client Session Idle** and **Client Session Max** can be changed for the selected application.
12. Select **Save**.
