# How to redirect user to login when token is expire

**URL:** <https://community.auth0.com/t/how-to-redirect-user-to-login-when-token-is-expire/119959>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [November 1, 2023, 1:37pm UTC](https://community.auth0.com/t/how-to-redirect-user-to-login-when-token-is-expire/119959 "2023-11-01T13:37:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [November 3, 2023, 4:27pm UTC](https://community.auth0.com/t/how-to-redirect-user-to-login-when-token-is-expire/119959/3 "2023-11-03T16:27:50Z")

</div>

Hi @mmdanish,

You can force users to reauthenticate when the token/session expires by configuring your Login Session Management settings for the **Inactivity timeout** and **Require log in after** settings.

See [Session Lifetime Limits](https://auth0.com/docs/manage-users/sessions/session-lifetime-limits).

Additionally, you may need to clear the user’s session by logging them out on the [Application Session.](https://auth0.com/docs/get-started/architecture-scenarios/sso-for-regular-web-apps/part-3#session-management). See our [Why Users Remain Login After the Inactivity Timeout](https://community.auth0.com/t/why-users-remain-login-after-the-inactivity-timeout/87161) FAQ for more details.

Please let me know if you have any questions about this.

Thanks,  
Rueben

---

_[View the full topic](https://community.auth0.com/t/how-to-redirect-user-to-login-when-token-is-expire/119959)._
