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
Is there a way to invalidate all sessions where a specific field has a specific value? To be more specific, when a user requests to log out all devices or changes his username, I want to invalidate (or update) existing sessions that are logged into that user.
An obvious way would be to go through every single session and check it, but I tried getting the session middleware and the only methods available in crow::SessionMiddleware<crow::InMemoryStore> are before_handle and after_handle.
The text was updated successfully, but these errors were encountered:
GEOEGII555
changed the title
Invalidate existing sessions
Can you invalidate specific sessions? (NOT the current one, sessions that have a specific value in a specific field)
Jan 9, 2025
Is there a way to invalidate all sessions where a specific field has a specific value? To be more specific, when a user requests to log out all devices or changes his username, I want to invalidate (or update) existing sessions that are logged into that user.
An obvious way would be to go through every single session and check it, but I tried getting the session middleware and the only methods available in
crow::SessionMiddleware<crow::InMemoryStore>
arebefore_handle
andafter_handle
.The text was updated successfully, but these errors were encountered: