X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/60f145f13eb2608ad003e2325aecfc8fb7c37159..9793e4fb7f6503beab0efe1576f3e13dbf350f30:/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 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