diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb index d65a9711c..fef102c5f 100644 --- a/app/controllers/sessions_controller.rb +++ b/app/controllers/sessions_controller.rb @@ -114,12 +114,13 @@ class SessionsController < ApplicationController # "Delete" a login, aka "log the user out" def destroy + reset_session + # Remove the user id from the session @_current_user = nil # reset session request.env['rack.session.options'][:expire_after] = nil - session.clear render json: {} end