Permalink
Browse files

Return the same session data object when setting session id

  • Loading branch information...
1 parent 47db156 commit 5ad9a8e874db9e210123fde7a542cd2a05c6abd3 @carlosantoniodasilva carlosantoniodasilva committed Mar 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionpack/lib/action_dispatch/middleware/session/cookie_store.rb
@@ -59,7 +59,8 @@ def unpacked_cookie_data(env)
end
def set_session(env, sid, session_data, options)
- session_data.merge("session_id" => sid)
+ session_data["session_id"] = sid
+ session_data
end
def set_cookie(env, session_id, cookie)

0 comments on commit 5ad9a8e

Please sign in to comment.