Increase cookie timeout

This commit is contained in:
2024-01-02 14:28:20 +11:00
parent 5f6e3fd86f
commit 9ab399cf1a

View File

@@ -9,7 +9,7 @@ raise StandardError.new("No secret key") unless ENV["SESSION_SECRET"]
use Rack::Session::Cookie,
domain: URI.parse(ENV["MICROPUB_SITE_URL"]).host,
path: "/",
expire_after: 3600 * 24,
expire_after: 3600 * 72,
secret: ENV["SESSION_SECRET"]
require "rack/rewrite"