X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bbf30e76e4bfcd70e62fc84ecd32c5e494506e9e..2bceba38bad5dfcf70023da99d17a5953183cd84:/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