Cookie Block
Last updated
Last updated
This block allows you to receive, set or delete cookies. The block settings contain three modes of operation:
Get cookie. In this mode, the block receives cookies. Below is a screenshot with the settings of this mode.
Get all cookies. Defines whether to get one or all cookies
Use JSON format. Settings such as URL, Name, Path and Domain can be written in json format instead of a separate entry in the menu.
URL. The URL with which the cookie to retrieve is associated. This field is optional when you turn on "Get all cookies"
Name. The name of the cookies to get
Path. The path of the cookies
Domain. Domain to which cookies should be linked (with this exact domain or one of its sub-domains)
Set a cookie. In this mode, the block sets cookies. Below is a screenshot with the settings of this mode.
Use JSON format. Similar to the previous mode, it allows you to record all the mode settings in json format.
URL. Defines the request URI to be assigned to the cookie. This value may affect the domain and path values of the created cookie.
Name. The name of the cookie
Path. The path of the cookies
Value. The value of the cookies
Domain. This is the domain of the cookie.
sameSite. This is the value that indicates the SameSite state of the cookie. Probable values: lax, strict, or you can keep it empty.
expirationDate. The cookie expires according to the number of seconds.
Remove cookies. In this mode, the block deletes cookies. Here you need to specify the information in the URL, Name, Path settings. This data can also be specified in json format using the Use JSON format setting.