# Redirect from rules: state value lifetime

**URL:** <https://community.auth0.com/t/redirect-from-rules-state-value-lifetime/7406>\
**Category:** Get Help\
**Tags:** state, redirect-rules\
**Created:** [July 6, 2017, 8:32pm UTC](https://community.auth0.com/t/redirect-from-rules-state-value-lifetime/7406 "2017-07-06T20:32:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben\_leen11](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ben\_leen11](https://community.auth0.com/u/ben_leen11)\
**Post date:** [July 6, 2017, 8:32pm UTC](https://community.auth0.com/t/redirect-from-rules-state-value-lifetime/7406/1 "2017-07-06T20:32:12Z")

</div>

We rely on the redirect user from rules feature:

> **[Redirect Users from Within Rules - Auth0 Docs](https://auth0.com/docs/customize/rules/redirect-users)**
>
> Learn how to customize authentication flows by redirecting users using rules. Example areas that can be customized include MFA, privacy policy acceptance, and gathering user data.

The docs here don’t show any details about the state value.  
Does it have an expiry time?  
I assume not but, do previously issued state values become invalid when a new one is issued for a given user?

Any details worth sharing are great.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [July 10, 2017, 4:44pm UTC](https://community.auth0.com/t/redirect-from-rules-state-value-lifetime/7406/2 "2017-07-10T16:44:13Z")

</div>

The state value does seem to have an associated lifetime and some tests indicate that this lifetime is affected by the value you configured for _SSO Cookie Timeout_ in your account settings. This means the end-user will have to complete whatever is associated with the redirect rule step before the value configured for that timeout. Have in mind this was based on quick tests so I’ll try to confirm this situation and ideally document any lifetime information in the documentation you linked.

In addition, the user can start authentication flows (that include redirect rule) at multiple browsers and this will mean the use of multiple states which are independent and that can all be continued with success so there’s no strict one to one limitation to the user itself. However, also based on observations from a quick test, if you start multiple transaction from the same browser session you will only be able to complete one of them.

---

<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:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/redirect-from-rules-state-value-lifetime/7406/3 "2018-03-02T05:55:12Z")

</div>


