Skip to content
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

A bug with mongodriver "expireAfter" option #166

Open
bblwbtd opened this issue Apr 27, 2022 · 4 comments
Open

A bug with mongodriver "expireAfter" option #166

bblwbtd opened this issue Apr 27, 2022 · 4 comments

Comments

@bblwbtd
Copy link

bblwbtd commented Apr 27, 2022

image

I use the official mongo driver and set the maxAge to 3600. However, the expireAfter becomes 817405952 finally.

@bblwbtd
Copy link
Author

bblwbtd commented Apr 27, 2022

My go version is 1.17.2. This seems like a bug of mongostore package.

@bblwbtd
Copy link
Author

bblwbtd commented Apr 27, 2022

laziness-coders/mongostore#1

This pull request can fix this issue. Thanks to @DuckSoft

@bos-hieu bos-hieu mentioned this issue Apr 29, 2022
@yuu2lee4
Copy link

yuu2lee4 commented Jun 15, 2022

I met the same issue when i set maxAge to 3x60x60,it told me 'expireAfterSeconds' option cannot be less than 0

@dscso
Copy link

dscso commented Dec 5, 2022

I have the same problem, but as the library seems to be unmaintained I have opened a fork where it works.
I will not maintain the fork, so don't use it for production!
https://github.com/dscso/sessions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants