]> git.openstreetmap.org Git - rails.git/commitdiff
Go back to the rails 3 based upstream version of session-persistence
authorTom Hughes <tom@compton.nu>
Sun, 5 Sep 2010 21:40:12 +0000 (22:40 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 14 Nov 2011 09:42:44 +0000 (09:42 +0000)
vendor/plugins/session-persistence/lib/session_persistence.rb

index 2fac6033257c89b8fe9762e19e0351aa0cb42c9d..7bb51bc465bd97a8b7265d85522b9dfc484e2188 100644 (file)
@@ -22,8 +22,7 @@ module SessionPersistence
   
   def _persist_session
     if session[session_persistence_key]
-      request.session_options[:expires] = Time.now + session[session_persistence_key]
-      request.session_options[:expire_after] = session[session_persistence_key]
+      env["rack.session.options"][:expire_after] = session[session_persistence_key]
     end
   end
 end