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
I have a use case where the application can be set into a "maintenance mode".
When doing that, I'd like to destroy all current active sessions.
So far I only know that setting a session to null in a middleware, will destroy it. But it's mainly for the "sign out" use case.
Could koa-session provide an apocalypse method to destroy all?
Note I am using Redis, so I guess I could delete all session keys but I have more stuff than the sessions in there. I'd rather have a standard method independent of the store.
The text was updated successfully, but these errors were encountered:
I have a use case where the application can be set into a "maintenance mode".
When doing that, I'd like to destroy all current active sessions.
So far I only know that setting a session to
null
in a middleware, will destroy it. But it's mainly for the "sign out" use case.Could koa-session provide an apocalypse method to destroy all?
Note I am using Redis, so I guess I could delete all session keys but I have more stuff than the sessions in there. I'd rather have a standard method independent of the store.
The text was updated successfully, but these errors were encountered: