kcbanner/connect-mongo — Issue #26: add automatic  cleanup functionality for old sessions
Author: mariusa
Created: 2012-02-18 21:23:08+00:00
State: open

Please add automatic cleanup functionality for old sessions, maybe similar to
connect.session({ store: new MemoryStore({ reapInterval: 60000 * 10 }) }),

It would be good to also have an option to leave only X session records and delete all the rest (which are older).
Use case: using a limited storage db for sessions.