In ActionDispatch::Session::DestroyableSession: instead of setting it to nil, assign the newly generated session-ID to the Rack::Session::Abstract::SessionHash after destroying it.