Can I have different session expirations based on certain parameters? #1606
-
I was wondering if it's possible to set the ExampleMy app has 2 kinds of users: Customers and Managers. Both user kinds have the same data shape and therefore use the same Lucia session adapter. However, I would like to set the expiration of Customer sessions to 30 days, but only 1 hour for Managers as added security. Do I need a separate Lucia instance for each user kind or is there any way to have a dynamic Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No, since Lucia needs to know how long the session is valid for when extending session expirations |
Beta Was this translation helpful? Give feedback.
No, since Lucia needs to know how long the session is valid for when extending session expirations