cookie-name-pattern
Use the <cookie-name-pattern> stanza entry to define the static
attributes that are added to the cookies before they are passed back to the client.
Syntax
<cookie-name-pattern> = {[+|-<user-agent-group>]}<attr-1>{;<attr-2>;...}
Description
Entries in this stanza define static attributes that are added to matching cookies before they
are passed back to the client. A blocklist (-) or an allowlist (+) group of
user agents can be added to control which user agents the cookie attributes are applied for. The
user agent group is defined in the [user-agent-groups] configuration stanza.
Multiple configuration entries can be configured to manage the static attributes for different
cookies. The configuration order of the entries is significant as only the first matching
configuration entry is applied to a cookie.
Options
<cookie-name-pattern>- The
<cookie-name-pattern>is used to match a cookie. The '*?' pattern matching characters can be used. {[+|-<user-agent-group]}<attr-1>{;<attr-2>;...}- The attributes that are to be added to the cookie. A blocklist (-) or an
allowlist (+) group of user agents can be added to control which user agents the cookie attributes
are applied for. The user agent group is defined in the
[user-agent-groups]configuration stanza. Multiple attributes, delimited by the ';' character, can be specified.The supported attributes include Comment, Expires, Max-Age, Domain, Path, Secure, HttpOnly, SameSite, and Partitioned.
Usage
This stanza entry is optional.
Default Value
None
Example
SameSite=None' attribute to all cookies that are passed back to the
client, but only for those clients not in the
'[unsupported-same-site]'
group:* = [-unsupported-same-site]SameSite=None