Permalink
Browse files

Assign a new session_id to session options hash

  • Loading branch information...
1 parent 000edbb commit 54a0b01f760354ee8002d136b322d6ea429b67f6 @alup alup committed with steveklabnik Sep 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/request/session.rb
@@ -70,8 +70,8 @@ def options
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

0 comments on commit 54a0b01

Please sign in to comment.