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

Add session expiration 'cron' job #12

Open
grant-h opened this issue Oct 18, 2017 · 2 comments
Open

Add session expiration 'cron' job #12

grant-h opened this issue Oct 18, 2017 · 2 comments

Comments

@grant-h
Copy link
Collaborator

grant-h commented Oct 18, 2017

Old sessions are left in the database after a server restart. We should create a cron job using setInterval to expire all old sessions every minute or so.

@grant-h
Copy link
Collaborator Author

grant-h commented Oct 25, 2017

Actually on second thought, all we need is to check for old sessions upon login once, expire them. For sessions that are still valid, add a setInterval callback to expire them at the proper time

@Juan-Jauregui
Copy link
Contributor

If by "login" you mean "server start" then I agree that's a better solution.

@grant-h grant-h added this to the Spring '17 GBM milestone Dec 12, 2017
grant-h pushed a commit that referenced this issue May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants