jodosha/redis-store — pull request #95 by faber (2011-10-13 16:28:05+00:00)
Title: Fix issue #94 which prevents deleting from the session in Rails 3.1

I tracked the problem down to the `merge_sessions` method in Rack::Session::Redis. It looks like the `@old` instance variable that is set in `get_session` is never retrieved in `set_session` because Rack doesn't use the actual results of `get_session` directly, but rather copies over all the key/value pairs into a new hash.

This commit fixed it for me, but I'm not sure how to go about writing the test for this...