# Why does changing ID token expiration to 1 second not log me out?

**URL:** <https://community.auth0.com/t/why-does-changing-id-token-expiration-to-1-second-not-log-me-out/55227>\
**Category:** Get Help\
**Created:** [December 22, 2020, 7:13am UTC](https://community.auth0.com/t/why-does-changing-id-token-expiration-to-1-second-not-log-me-out/55227 "2020-12-22T07:13:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilmoi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ilmoi/32/26376_2.png) [@ilmoi](https://community.auth0.com/u/ilmoi)\
**Post date:** [December 22, 2020, 7:13am UTC](https://community.auth0.com/t/why-does-changing-id-token-expiration-to-1-second-not-log-me-out/55227/1 "2020-12-22T07:13:35Z")

</div>

My understanding is that ID token is ressponsible for authenticating the user. Surely then when it expires I’m supposed to be logged out of the app?

Why does changing the below setting not achieve this? Or is my understanding wrong?

 ![image](https://global.discourse-cdn.com/auth0/original/3X/f/8/f81568e1093e3b0071d8ab291ae949e9bd485a9a.png)

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [December 22, 2020, 3:09pm UTC](https://community.auth0.com/t/why-does-changing-id-token-expiration-to-1-second-not-log-me-out/55227/2 "2020-12-22T15:09:59Z")

</div>

Hi @ilmoi

It is either an access token or a session that determines if you are logged in, most likely a session.  
See this page: [Sessions](https://auth0.com/docs/sessions-and-cookies)

John

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 22, 2020, 4:00pm UTC](https://community.auth0.com/t/why-does-changing-id-token-expiration-to-1-second-not-log-me-out/55227/3 "2020-12-22T16:00:34Z")

</div>

Yep ID tokens are used in token-based authentication to cache user profile information and provide it to a client application, thereby providing better performance and experience. The application receives an ID token after a user successfully authenticates, then consumes the ID token and extracts user information from it.

---

<div class="post-metadata">

**Author:** ![ilmoi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ilmoi/32/26376_2.png) [@ilmoi](https://community.auth0.com/u/ilmoi)\
**Post date:** [December 23, 2020, 6:53am UTC](https://community.auth0.com/t/why-does-changing-id-token-expiration-to-1-second-not-log-me-out/55227/4 "2020-12-23T06:53:59Z")

</div>

Makes sense. Thanks for guiding me.

For anyone looking to log out users fasters, the parameters to do so are under tenant settings:

> **[Configure Session Lifetime Settings](https://auth0.com/docs/manage-users/sessions/configure-session-lifetime-settings)**
>
> Describes how to configure session lengths and limits for a tenant using the Auth0 Dashboard or the Management API.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 23, 2020, 12:01pm UTC](https://community.auth0.com/t/why-does-changing-id-token-expiration-to-1-second-not-log-me-out/55227/5 "2020-12-23T12:01:12Z")

</div>

Thanks for sharing that with the rest of community!

---

<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 7, 2021, 12:01pm UTC](https://community.auth0.com/t/why-does-changing-id-token-expiration-to-1-second-not-log-me-out/55227/6 "2021-01-07T12:01:16Z")

</div>

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