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
originalMaxAge might get in negative number when set both maxAge and expires #365
Comments
confirmed that remove |
As per [this issue](expressjs/session#365)
From the docs it's suggested to use maxAge.
And probably best to only use maxAge.
|
Oh I missed the first mention there. |
Yes, the docs say don't even set |
True! |
As per [this issue](expressjs/session#365)
Hi guys!
We've encounter an issue that cause session expired immediately after creation.
And we found the cause is the
originalMaxAge
is a negative number in the DB.I set both
maxAge
andexpries
in the config like below:the
config.sessionlife
is14 * 24 * 60 * 60 * 1000
and I'm not sure if we setup correctly.
Thanks for helping us!
The text was updated successfully, but these errors were encountered: