# Auth0 login State Parameter duration

**URL:** <https://community.auth0.com/t/auth0-login-state-parameter-duration/156949>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [December 3, 2024, 2:43pm UTC](https://community.auth0.com/t/auth0-login-state-parameter-duration/156949 "2024-12-03T14:43:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rene.heijdens](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rene.heijdens/32/64619_2.png) [@rene.heijdens](https://community.auth0.com/u/rene.heijdens)\
**Post date:** [December 3, 2024, 2:43pm UTC](https://community.auth0.com/t/auth0-login-state-parameter-duration/156949/1 "2024-12-03T14:43:41Z")

</div>

Hi,

I have a question about the behavior of the `state` parameter in the Auth0 login URL. It seems this parameter has a time limit, after which Auth0 appears to lose the associated redirect URL. When this happens, users are redirected to the default landing page of our application instead of the intended redirect URL after a successful login.

This issue occurs with one of our customers who automatically reboot their PCs nightly. When they log in the following morning, they are redirected to the general application URL rather than the expected destination.

We’ve noticed that the problem arises if the login page remains open for an extended period (e.g., 1–2 hours) before completing the login process. However, if the login flow is completed without such a delay, everything works as expected.

Could you provide guidance on whether this behavior is expected? Is there a way to extend the lifespan of the `state` parameter or ensure the redirect URL is preserved regardless of delays at the login page?

Thank you for your help!

Best regards,  
Rene Heijdens

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [December 30, 2024, 8:24pm UTC](https://community.auth0.com/t/auth0-login-state-parameter-duration/156949/3 "2024-12-30T20:24:58Z")

</div>

Hi @rene.heijdens

Welcome to the Auth0 Community!

Thank you for your question. The behavior you observe is expected, as the state parameter has a limited lifetime due to security reasons. Unfortunately, it’s not possible to modify the length or size format of the parameter.

[https://community.auth0.com/t/validate-state-parameter/125562](https://community.auth0.com/t/validate-state-parameter/125562)  
[https://community.auth0.com/t/state-parameter-validation-length/94188](https://community.auth0.com/t/state-parameter-validation-length/94188)

Thanks  
Dawid

---

<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 13, 2025, 8:25pm UTC](https://community.auth0.com/t/auth0-login-state-parameter-duration/156949/4 "2025-01-13T20:25:24Z")

</div>

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