-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different max age for different users. #151
Comments
You should be able to use Symbol.for to access the |
No luck implementing your idea @Gameghostify in a similar situation. That leads me with the following when I try to override the maxAge and print it out to the console:
Any other ideas? |
You can, but I don't think you can do it if you set a In my case I did not set the |
Is there a way to alter the session length for specific "sessions"?
Say, under certain conditions, I'd like a given request to get a session of 1 week rather than one hour.
The maxAge of an existing session isn't modifiable (since the key is a symbol), and I'm not exactly sure how to create a new session that's otherwise identical and swap them out.
The text was updated successfully, but these errors were encountered: