From 54a0b01f760354ee8002d136b322d6ea429b67f6 Mon Sep 17 00:00:00 2001 From: Andreas Loupasakis Date: Sat, 1 Sep 2012 14:20:43 +0300 Subject: [PATCH] Assign a new session_id to session options hash --- actionpack/lib/action_dispatch/request/session.rb | 4 ++-- 1 file 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