diff options
author | Andreas Loupasakis <andreas@aloop.org> | 2012-09-01 14:20:43 +0300 |
---|---|---|
committer | Steve Klabnik <steve@steveklabnik.com> | 2012-09-01 16:35:32 -0700 |
commit | 54a0b01f760354ee8002d136b322d6ea429b67f6 (patch) | |
tree | 4939978d35909b37226bd38f7a9166d19abf3412 /actionpack | |
parent | 000edbbbaceedc2f6df2b039d44de6e7cb7118e7 (diff) | |
download | rails-54a0b01f760354ee8002d136b322d6ea429b67f6.tar.gz rails-54a0b01f760354ee8002d136b322d6ea429b67f6.tar.bz2 rails-54a0b01f760354ee8002d136b322d6ea429b67f6.zip |
Assign a new session_id to session options hash
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/request/session.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/request/session.rb b/actionpack/lib/action_dispatch/request/session.rb index d8bcc28613..0e0d7a1a33 100644 --- a/actionpack/lib/action_dispatch/request/session.rb +++ b/actionpack/lib/action_dispatch/request/session.rb @@ -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 |