superlogin icon indicating copy to clipboard operation
superlogin copied to clipboard

logout not cleaning up document in _users

Open micimize opened this issue 8 years ago • 2 comments

superlogin.logout, superlogin.logoutUser, and other forms of logout still leave documents in _users (attempted with both superlogin and superlogin-client)

micimize avatar Jan 23 '17 17:01 micimize

I think I have the same issue. There are a number of duplicate entries for sl-users in _users that are not cleaned up but I'm not sure if they are supposed to be?

mredbishop avatar May 19 '17 09:05 mredbishop

There are quite a few reasons this can occur. One due to this issue I documented #186, then there is the case of logout on expired sessions if you use superlogin-client issue 71. Of course if a user doesn't logout that would also leave sessions active, once the session expires you can periodically call removeExpiredKeys() on the server through an interval on your server.js or as a separate cron job.

clariontools avatar Oct 18 '17 22:10 clariontools