accounts icon indicating copy to clipboard operation
accounts copied to clipboard

Prune old sessions

Open TimMikeladze opened this issue 7 years ago • 2 comments

The lifespan of expired sessions should be configurable. It can provide a useful log for user account activity. Keep the latest 10 sessions for example.

TimMikeladze avatar Jan 31 '17 18:01 TimMikeladze

We should have some functions to clean all kinds of tokens (session, reset password tokens, etc ..). The user will then be able to use these functions in their own cron solution in order to clean the database.

pradel avatar Jul 30 '18 11:07 pradel

to add to the context, this is how meteor is doing it https://github.com/meteor/meteor/blob/9343ce2a3e6cfe88d591b827f826ee3241f66b3b/packages/accounts-base/accounts_server.js#L1430

pradel avatar May 14 '20 11:05 pradel