# Make session token timeout after 2 hours

**URL:** <https://forum.bubble.io/t/make-session-token-timeout-after-2-hours/325812>\
**Category:** APIs\
**Created:** [June 7, 2024, 3:39am UTC](https://forum.bubble.io/t/make-session-token-timeout-after-2-hours/325812 "2024-06-07T03:39:28Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![anhtpd](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@anhtpd](https://forum.bubble.io/u/anhtpd)\
**Post date:** [June 7, 2024, 4:36am UTC](https://forum.bubble.io/t/make-session-token-timeout-after-2-hours/325812/3 "2024-06-07T04:36:04Z")

</div>

It’s not possible to change the expiration time of the token

> [@API User Token Expiry / Possible to change?](https://forum.bubble.io/t/api-user-token-expiry-possible-to-change/85433/3):
>
> For those looking for the answer, I did get a helpful response from Bubble support: If you are setting this up in a workflow using the “Log a user in” step, you can try unchecking the “stay logged in” box. This will expire the user’s session after 24 hours. Users with this parameter checked, however, will receive a cookie of length 365 days. There isn’t currently a way to manually set the expiration time, but it has been suggested as a possible feature for future updates. For my use case, 2…

---

_[View the full topic](https://forum.bubble.io/t/make-session-token-timeout-after-2-hours/325812)._
