Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cookie option "partitioned" to DEFAULT_OPTIONS and documentation #43

Merged
merged 1 commit into from
Aug 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/rack/session/abstract/id.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -244,6 +244,7 @@ class Persisted
expire_after: nil,
secure: false,
httponly: true,
partitioned: false,
defer: false,
renew: false,
sidbits: 128,
Expand Down