1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Assign a new session_id to session options hash

This commit is contained in:
Andreas Loupasakis 2012-09-01 14:20:43 +03:00 committed by Steve Klabnik
parent 000edbbbac
commit 54a0b01f76

View file

@ -70,8 +70,8 @@ module ActionDispatch
def destroy def destroy
clear clear
options = self.options || {} options = self.options || {}
@by.send(:destroy_session, @env, options[:id], options) new_sid = @by.send(:destroy_session, @env, options[:id], options)
options[:id] = nil options[:id] = new_sid # Reset session id with a new value or nil
@loaded = false @loaded = false
end end