- Property Manager name: Set Response Cookie
- Behavior version: The
v2024-10-21
rule format supports theresponseCookie
behavior v1.3. - Rule format status: GA, stable
- Access: Read/Write
- Allowed in includes: Yes
Set a cookie to send downstream to the client with either a fixed value or a unique stamp.
Option | Type | Description | Requires | |
---|---|---|---|---|
cookieName | string (allows variables) | Specifies the name of the cookie, which serves as a key to determine if the cookie is set. | {"displayType":"string","tag":"input","type":"text"} | |
enabled | boolean | Allows you to set a response cookie. | {"displayType":"boolean","tag":"input","type":"checkbox"} | |
type | enum | What type of value to assign. | {"displayType":"enum","options":["FIXED","UNIQUE"],"tag":"select"} {"if":{"attribute":"enabled","op":"eq","value":true}} | |
FIXED | Assign a | |||
UNIQUE | Assign a unique value. | |||
value | string (allows variables) | If the cookie | type is FIXED | {"displayType":"string","tag":"input","type":"text"} {"if":{"attribute":"type","op":"eq","value":"FIXED"}} |
format | enum | When the | type is UNIQUE | {"displayType":"enum","options":["AKAMAI","APACHE"],"tag":"select"} {"if":{"attribute":"type","op":"eq","value":"UNIQUE"}} |
AKAMAI | Akamai format, which adds milliseconds to the date stamp. | |||
APACHE | Apache format. | |||
defaultDomain | boolean | When enabled, uses the default domain value, otherwise the set specified in the | {"displayType":"boolean","tag":"input","type":"checkbox"} {"if":{"attribute":"enabled","op":"eq","value":true}} | |
defaultPath | boolean | When enabled, uses the default path value, otherwise the set specified in the | {"displayType":"boolean","tag":"input","type":"checkbox"} {"if":{"attribute":"enabled","op":"eq","value":true}} | |
domain | string (allows variables) | If the | defaultDomain is false | {"displayType":"string","tag":"input","type":"text"} {"if":{"attribute":"defaultDomain","op":"eq","value":false}} |
path | string (allows variables) | If the | defaultPath is false | {"displayType":"string","tag":"input","type":"text"} {"if":{"attribute":"defaultPath","op":"eq","value":false}} |
expires | enum | Sets various ways to specify when the cookie expires. | {"displayType":"enum","options":["ON_BROWSER_CLOSE","FIXED_DATE","DURATION","NEVER"],"tag":"select"} {"if":{"attribute":"enabled","op":"eq","value":true}} | |
ON_BROWSER_CLOSE | Limit the cookie to the duration of the session. | |||
FIXED_DATE | Requires a corresponding | |||
DURATION | Requires a corresponding | |||
NEVER | Let the cookie persist indefinitely. | |||
expirationDate | string (epoch timestamp) | If | expires is FIXED_DATE | {"displayType":"string","tag":"input","type":"text"} {"if":{"attribute":"expires","op":"eq","value":"FIXED_DATE"}} |
duration | string (duration) | If | expires is DURATION | {"displayType":"string","tag":"input","type":"text"} {"if":{"attribute":"expires","op":"eq","value":"DURATION"}} |
sameSite | enum | This option controls the | {"displayType":"enum","options":["DEFAULT","NONE","LAX","STRICT"],"tag":"select"} {"if":{"attribute":"enabled","op":"eq","value":true}} | |
DEFAULT | Send the | |||
NONE | Send the cookie in all contexts if the | |||
LAX | Send the cookie also when the user navigates to a URL from an external site. | |||
STRICT | Send the cookie only to the same site that originated it. | |||
secure | boolean | When enabled, sets the cookie's | {"displayType":"boolean","tag":"input","type":"checkbox"} {"if":{"attribute":"enabled","op":"eq","value":true}} | |
httpOnly | boolean | When enabled, includes the | {"displayType":"boolean","tag":"input","type":"checkbox"} {"if":{"attribute":"enabled","op":"eq","value":true}} |