-
Notifications
You must be signed in to change notification settings - Fork 111
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
Is it possible to specify session id to delete a session? #147
Comments
It is possible to delete sessions that use storage other than |
@bungle According to my test, the following codes work: local session = require "resty.session".new({
storage = "shm"
})
local session_id = session.encoder.encode(id)
session.storage:destroy(session_id) But such codes are tight coupling with internal implementation. Do you think it's ok to encapsulate such codes into high level API? |
I need this api too. Because of the administrator wants to LOCK and LOGOUT some other users. |
I am currently working on 4.0 version of the library. It will come with a lot of stuff. I hope to release it within couple of weeks. I will consider adding some of this admin stuff there, but most likely will happen on the 4.1.0. The code is currently in here: |
@GYWang1983, upgrade to 4.0 and enable
|
Sometimes the session is not determined from cookie of the current request, and it's necessary to delete a session by specifing the session id, e.g. in SAML protocol, when receiving the logout request from IdP, it need to delete the session which does not belongs to current cookie.
The text was updated successfully, but these errors were encountered: