Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Attach callback into clearInterval #27
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
connect-mongo will ask MongoDB to remove all the sessions that have expired before the current date. Since that call doesn't return a list of removed items, currently this isn't trivial to add.
However, this could be added as an option, where we run a find() to get all the expired sessions before removing them, and call your callback on the list of those sessions.