X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ce7b651eb25473b74765ccb349f37ebd4ea6edfe..95360d9fbfb32b53bf5220dc54dc6dc10bada3bd:/vendor/plugins/session-persistence/lib/session_persistence.rb diff --git a/vendor/plugins/session-persistence/lib/session_persistence.rb b/vendor/plugins/session-persistence/lib/session_persistence.rb index 2fac60332..7bb51bc46 100644 --- a/vendor/plugins/session-persistence/lib/session_persistence.rb +++ b/vendor/plugins/session-persistence/lib/session_persistence.rb @@ -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