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:
parent
000edbbbac
commit
54a0b01f76
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue