# User session logout alert

**URL:** <https://community.cumulocity.com/t/user-session-logout-alert/2135>\
**Category:** Forum\
**Tags:** cumulocity\
**Created:** [April 20, 2023, 3:22pm UTC](https://community.cumulocity.com/t/user-session-logout-alert/2135 "2023-04-20T15:22:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhassan](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/mhassan/32/4078_2.png) [@mhassan](https://community.cumulocity.com/u/mhassan)\
**Post date:** [April 20, 2023, 3:22pm UTC](https://community.cumulocity.com/t/user-session-logout-alert/2135/1 "2023-04-20T15:22:51Z")

</div>

#### _Product/components used and version/fix level are you on:_

10.14

#### _Detailed explanation of the problem:_

we have integrated the azure b2c SSO to our Cumulocity tenants, just wanted to know if we have any option to give a user an alert before we auto logout then from the active session.  
We auto logout the user in 24 hr, as many of our user keep the session active to monitor the system through the dashboard, they like to have an alert. I’m pasting an example from the workday for reference.

#### _Error messages / **full error** message screenshot / log fileL_

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/b/3/b3a21e851713175343b2063c3bbda2118cf61e02.png)

#### _Is your question related to the free trial, or to a production (customer) instance?_

customer production

#### _Have you installed all the latest fixes for the products and systems you are using?_

---

<div class="post-metadata">

**Author:** ![mhassan](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/mhassan/32/4078_2.png) [@mhassan](https://community.cumulocity.com/u/mhassan)\
**Post date:** [April 24, 2023, 5:19pm UTC](https://community.cumulocity.com/t/user-session-logout-alert/2135/2 "2023-04-24T17:19:04Z")

</div>

hey guys, looking for any help here.

---

<div class="post-metadata">

**Author:** ![Harrison\_Pace](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/harrison_pace/32/2961_2.png) [@Harrison\_Pace](https://community.cumulocity.com/u/Harrison_Pace)\
**Post date:** [May 8, 2023, 9:47am UTC](https://community.cumulocity.com/t/user-session-logout-alert/2135/3 "2023-05-08T09:47:16Z")

</div>

> [@mhassan](#):
>
> just wanted to know if we have any option to give a user an alert before we auto logout then from the active session.

This is something we would like to implement on our Customer’s Production Web Application, we would appreciate some feedback as well.

---

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [May 12, 2023, 8:20am UTC](https://community.cumulocity.com/t/user-session-logout-alert/2135/4 "2023-05-12T08:20:01Z")

</div>

In general the token in Cumulocity expires after 14 days. You can get that information from the browser cookies:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/0/d/0d5269f4ff2ed00c594452bdf020d3d719a96536.png)

When using SSO this Expiration Time should be adopted, if not please give us a hint so we can have a deeper look.

So you could implement a modal window that pop-up when the expiration time is below a defined threshold. Ideally this is developed as a UI plugin and added to the applications where you want to have that “Alert popup”.

What we don’t have out of the box is the “Reset” functionality. You actually need to re-login after expiration to get a new token with new expiration time. so you can add a button that logs off the user and redirects him to the login page as a workaround.

---

<div class="post-metadata">

**Author:** ![Harrison\_Pace](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/harrison_pace/32/2961_2.png) [@Harrison\_Pace](https://community.cumulocity.com/u/Harrison_Pace)\
**Post date:** [October 18, 2023, 10:13am UTC](https://community.cumulocity.com/t/user-session-logout-alert/2135/5 "2023-10-18T10:13:04Z")

</div>

@Stefan_Witschel

> When using SSO this Expiration Time should be adopted

Are you suggesting, 14 days should be adopted by default when using SSO; because that’s not what we are seeing in our Production instance. Users with SSO are signing out after 10 minutes. Is this something we can debug somehow?

---

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [October 18, 2023, 10:42am UTC](https://community.cumulocity.com/t/user-session-logout-alert/2135/6 "2023-10-18T10:42:03Z")

</div>

> [@Stefan\_Witschel](#):
>
> this Expiration Time should be adopted, if not please give us a hint so we can have a deeper look.

No, what I wanted to say is that when SSO is configured in Cumulocity, it uses the timeouts of the configured SSO system. So when your users are logged out after 10 minutes I guess this is something configured in your SSO system and Cumulocity just uses this timeouts to logout users.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [April 15, 2024, 10:42am UTC](https://community.cumulocity.com/t/user-session-logout-alert/2135/7 "2024-04-15T10:42:29Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
