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
|
||||
clear
|
||||
options = self.options || {}
|
||||
@by.send(:destroy_session, @env, options[:id], options)
|
||||
options[:id] = nil
|
||||
new_sid = @by.send(:destroy_session, @env, options[:id], options)
|
||||
options[:id] = new_sid # Reset session id with a new value or nil
|
||||
@loaded = false
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue