X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8dae890a7645fba17a44d84f78be03d993e22ccb..9cf698322ce70e2fdb718be6624b0ac4e8eaf285:/lib/session_persistence.rb?ds=sidebyside diff --git a/lib/session_persistence.rb b/lib/session_persistence.rb index ac0e690c2..5e933f48a 100644 --- a/lib/session_persistence.rb +++ b/lib/session_persistence.rb @@ -41,7 +41,7 @@ module SessionPersistence # session_expires_after 1.hour # session_expires_after 2.weeks def session_expires_after(seconds) - session[session_persistence_key] = seconds + session[session_persistence_key] = seconds.to_i end # Expire the session.