]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/plugins/session-persistence/lib/session_persistence.rb
Merge branch 'master' into openstreetbugs
[rails.git] / 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