]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/plugins/session-persistence/lib/session_persistence.rb
User getImageLocation to get the URLs for markers
[rails.git] / vendor / plugins / session-persistence / lib / session_persistence.rb
index 50e30c0f131fac8055ad372a780a495055a627fe..7bb51bc465bd97a8b7265d85522b9dfc484e2188 100644 (file)
@@ -22,9 +22,7 @@ module SessionPersistence
   
   def _persist_session
     if session[session_persistence_key]
-      request.session_options = request.session_options.dup
-      request.session_options[:expire_after] = session[session_persistence_key]
-      request.session_options.freeze
+      env["rack.session.options"][:expire_after] = session[session_persistence_key]
     end
   end
 end