You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a session is expired in a TypeORMStore or MongoDBStore, it is destroyed only if the app tries to read it or if Store.cleanupExpiredSessions is called.
This means that users should run periodically the cleanupExpiredSessions method (like in Django).
This is not very handy. The framework should take care of this without multiplying by two the number of requests to the database.
Solution
Like in Laravel, cleanup the expired sessions regularly when a session is committed based on a random number between 0 and 50 (can be modified in the config)
The text was updated successfully, but these errors were encountered:
Issue
When a session is expired in a
TypeORMStore
orMongoDBStore
, it is destroyed only if the app tries to read it or ifStore.cleanupExpiredSessions
is called.This means that users should run periodically the
cleanupExpiredSessions
method (like in Django).This is not very handy. The framework should take care of this without multiplying by two the number of requests to the database.
Solution
Like in Laravel, cleanup the expired sessions regularly when a session is committed based on a random number between 0 and 50 (can be modified in the config)
The text was updated successfully, but these errors were encountered: