response_cookie
- Property Manager name: Set Response Cookie
- Behavior version: The
v2024-05-31
rule format supports theresponse_cookie
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 | |
---|---|---|---|---|
cookie_name | 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. | |||
default_domain | 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}} | |
default_path | 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 | default_domain is false | {"displayType":"string","tag":"input","type":"text"} {"if":{"attribute":"defaultDomain","op":"eq","value":false}} |
path | string (allows variables) | If the | default_path 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. | |||
expiration_date | 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"}} |
same_site | 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}} | |
http_only | boolean | When enabled, includes the | {"displayType":"boolean","tag":"input","type":"checkbox"} {"if":{"attribute":"enabled","op":"eq","value":true}} |
Updated 19 days ago