# Notify user of pending logout

**URL:** <https://community.auth0.com/t/notify-user-of-pending-logout/98356>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [January 17, 2023, 4:42pm UTC](https://community.auth0.com/t/notify-user-of-pending-logout/98356 "2023-01-17T16:42:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![john.goodwin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.goodwin/32/42729_2.png) [@john.goodwin](https://community.auth0.com/u/john.goodwin)\
**Post date:** [January 17, 2023, 4:42pm UTC](https://community.auth0.com/t/notify-user-of-pending-logout/98356/1 "2023-01-17T16:42:49Z")

</div>

Hi, I’d like to notify users when their current session is due to expire, and that they’ll be logged out in X minutes, to allow them to extend their session.

Can anyone tell me how I’d do this, please?

Thanks.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [January 17, 2023, 11:56pm UTC](https://community.auth0.com/t/notify-user-of-pending-logout/98356/3 "2023-01-17T23:56:49Z")

</div>

Hi @john.goodwin,

Welcome to the Auth0 Community!

> [@john.goodwin](#):
>
> Can anyone tell me how I’d do this, please?

For this, I recommend using the user’s access token `exp` claim to get the expiration time of the session.

Then with this knowledge, you can issue a notification on your application letting the user know when their session will expire.

I hope this helps!

Please let me know how this works for you.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 31, 2023, 11:57pm UTC](https://community.auth0.com/t/notify-user-of-pending-logout/98356/4 "2023-01-31T23:57:14Z")

</div>

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