Delete server-side session on logout

When it's set. Also, store it in current attributes for convenience.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Rosa Gutierrez
2026-01-15 20:04:01 +01:00
committed by Rosa Gutierrez
parent 1852adb06c
commit dde94b06ed
4 changed files with 31 additions and 7 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ class SessionsController < ApplicationController
def destroy
remove_push_subscription
reset_authentication
terminate_current_session
redirect_to root_url
end