Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mechanism to destroy all sessions? #202

Open
AoDev opened this issue Sep 27, 2020 · 0 comments
Open

Mechanism to destroy all sessions? #202

AoDev opened this issue Sep 27, 2020 · 0 comments

Comments

@AoDev
Copy link

AoDev commented Sep 27, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant