X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/60f145f13eb2608ad003e2325aecfc8fb7c37159..ce7b651eb25473b74765ccb349f37ebd4ea6edfe:/vendor/plugins/session-persistence/lib/session_persistence.rb?ds=sidebyside diff --git a/vendor/plugins/session-persistence/lib/session_persistence.rb b/vendor/plugins/session-persistence/lib/session_persistence.rb index 50e30c0f1..2fac60332 100644 --- a/vendor/plugins/session-persistence/lib/session_persistence.rb +++ b/vendor/plugins/session-persistence/lib/session_persistence.rb @@ -22,9 +22,8 @@ module SessionPersistence def _persist_session if session[session_persistence_key] - request.session_options = request.session_options.dup + request.session_options[:expires] = Time.now + session[session_persistence_key] request.session_options[:expire_after] = session[session_persistence_key] - request.session_options.freeze end end end