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

Clean up old sessions? #4

Open
christianrank opened this issue May 31, 2014 · 2 comments
Open

Clean up old sessions? #4

christianrank opened this issue May 31, 2014 · 2 comments

Comments

@christianrank
Copy link

Together with accounts-guest, there are many unused sessions after some time.

I think we need a mechanism to delete all session values of sessions that are not used for a certain time (like accounts-guest cleans up old users), or delete them if the User doesn't exist anymore.

@udondan
Copy link

udondan commented Jun 2, 2014

+1

I think this should be solved with mongo's TTL feature. http://docs.mongodb.org/manual/tutorial/expire-data/

This stackoverflow question suggests it might work in Meteor: http://stackoverflow.com/questions/18290196/time-to-live-with-meteor-collection

@pwujek
Copy link

pwujek commented Jul 27, 2014

For testing and debugging purposes it might be handy to have a 'deleteAll' method to clean out all current UserSessions.

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