# Session lifetime dependent on user property

**URL:** <https://community.auth0.com/t/session-lifetime-dependent-on-user-property/118657>\
**Category:** Get Help\
**Tags:** authentication-sessions, sessions\
**Created:** [October 16, 2023, 7:49pm UTC](https://community.auth0.com/t/session-lifetime-dependent-on-user-property/118657 "2023-10-16T19:49:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SnpStef](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/snpstef/32/33282_2.png) [@SnpStef](https://community.auth0.com/u/SnpStef)\
**Post date:** [October 16, 2023, 7:49pm UTC](https://community.auth0.com/t/session-lifetime-dependent-on-user-property/118657/1 "2023-10-16T19:49:47Z")

</div>

Hi,

we have two types of users which we differentiate by storing meta data in app\_settings.  
Now we want one type of users to hava a permanent session experience and the other type of users must have a non permanent session, hence they must logon every time they open the browser again. Any idea how we can accomplish this?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [October 17, 2023, 11:59pm UTC](https://community.auth0.com/t/session-lifetime-dependent-on-user-property/118657/2 "2023-10-17T23:59:38Z")

</div>

Hey there @SnpStef !

Auth0 doesn’t directly support a scenario like this as sessions are customizable, but at the application level. What might be an option is implementing logic in your app code to handle [logging out](https://auth0.com/docs/authenticate/login/logout) users that meet your specific criteria.

---

<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:** [December 22, 2023, 11:36pm UTC](https://community.auth0.com/t/session-lifetime-dependent-on-user-property/118657/4 "2023-12-22T23:36:44Z")

</div>

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