Seeing as we let users close individual sessions, and we already list all the active sessions, maybe we should let users with the right permission also close all active sessions (except for their own).
This would be useful for kicking out all logged in users prior to a deployment, for example.
I will upload a patch shortly.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | add_close_all_sessions_link-2749009-2.patch | 3.12 KB | Phil Wolstenholme |
Comments
Comment #2
Phil Wolstenholme commentedAdding a patch that:
Comment #3
Phil Wolstenholme commentedSetting this to needs review, but I suspect it would be better if it called
_drupal_session_destroy()instead of just clearing out the sessions table in the db.Comment #4
avpadernoIt could also be helpful if an account has been compromised and administrator users need to avoid the attacker reads or changes anything in the account or what the account posted.