From f9b045c20eddb940040500a7351d584372ce760d Mon Sep 17 00:00:00 2001 From: womblep Date: Sun, 11 Aug 2024 10:28:31 +1000 Subject: [PATCH] Add cookie option "partitioned" to DEFAULT_OPTIONS and documentation of class Persisted (#43) --- lib/rack/session/abstract/id.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rack/session/abstract/id.rb b/lib/rack/session/abstract/id.rb index f32bad5..52446a5 100644 --- a/lib/rack/session/abstract/id.rb +++ b/lib/rack/session/abstract/id.rb @@ -215,7 +215,7 @@ def stringify_keys(other) # All parameters are optional. # * :key determines the name of the cookie, by default it is # 'rack.session' - # * :path, :domain, :expire_after, :secure, :httponly, and :same_site set + # * :path, :domain, :expire_after, :secure, :httponly, :partitioned and :same_site set # the related cookie options as by Rack::Response#set_cookie # * :skip will not a set a cookie in the response nor update the session state # * :defer will not set a cookie in the response but still update the session @@ -244,6 +244,7 @@ class Persisted expire_after: nil, secure: false, httponly: true, + partitioned: false, defer: false, renew: false, sidbits: 128,