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 2fac603..7bb51bc 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