The cookies object is available on every page, and contains information regarding the cookies sent with the request. Note that this will typically only include cookies for the current or top-level domain on multi-domain sites.
| Name | Type | Description |
| is_valid | Boolean | Will always be true |
| keys | list | The list of cookie names on the current request, including cookies that may have been added or removed after the request started processing. |
| * | String | Individual cookies on this request may be accessed using {{ cookies.cookieName }} or {{ cookies['cookie-name'] }} syntax |
| output | String | JSON representation of the cookies object, similar to {{ cookies | inspect: 3, false }} |
The cookies object is copyable, and when copied using the {% copy_to_dictionary %} the keys will be the names of the cookies and the values will be the corresponding cookie objects.
You may also treat this object as a list containing all of the cookie names which may be iterated using a {% for %} loop.
Sets a cookie in the HTTP response.
There are a small number of reserved and forbidden cookie names, the most prominent being "_mp_permissions" - the name of the cookie used by Marketpath for handling permissions. You must use the {% set_client_permission %} and {% unset_client_permission %} methods to manage permissions instead of manipulating the permissions cookie directly.
"Unsets" one or more cookies. Because of how cookies work, this will actually ADD the cookie to the response with an expiration date in the past.
Set Cookie that expires in 20 minutes
CopyLogout clear session and cookies
CopyLogout clear cookies
CopyUnset multiple Cookies
CopyAccess custom cookie
CopyDo something with {{ cookieValue }}
{% endif %}Set cookie with reference variable
CopyList all cookies in the current request
CopyUnset Cookie
Copy