Cookie
Retrieve, set, or delete Cookies.
Get Cookie
Retrieve all Cookies or a specific Cookie.
All Cookies
- URL: Represents the URL associated with the Cookies.
Specific Cookie
URL: Represents the URL associated with the Cookie.
Name: The name of the Cookie to retrieve.
Assign to Variable
Assign the desired value to a variable.
Insert into Table
- Select Column
Assign the Cookie to a column in a table.
Example of using the Get Cookie
function of the Cookie
node
- Retrieving all Cookies
For example, you have the following Cookies for X:
To retrieve all Cookies for X, configure the Cookie
node as follows. Then, assign the value to a variable named a
The variable will then receive the desired Cookie values:
- Retrieving a specific Cookie
For example, you have the following Cookies for X:
To retrieve the Cookie named guest_id
, you need to configure the Cookie
node as follows. Next, assign the retrieved value to a variable named a
:
The variable will then receive the desired Cookie values:
Set Cookie
You can set Cookies in the profile as follows:
Using JSON or Text Format
You can use JSON or text format to input Cookies.
URL
Represents the URL associated with the Cookie.
Domain
The domain of the Cookie to be set.
Example of using the Set Cookie
function of the Cookie
node
Here, you will use a JSON file to input Cookies into the desired profile.
This is the profile before adding Cookies:
First, you will use the Read File Text
node to read the JSON file containing the Cookies. To use the data in subsequent steps, you will assign it to a variable named a
:
Then, you will use the Cookie
node with the Set Cookie
option to input the Cookie values read from the file. In the value input section, you will use the expression {{$join([variables.a])}}
to convert the data from multiple lines into a single line (since the Read File Text
node converts data into multi-line text):
After running, the Cookies will be added to the profile:
Remove Cookies
You can delete Cookies based on the following options:
All Cookies
Remove all Cookies.
- URL
Represents the URL associated with the Cookies.
- Do Not Select All Cookies
URL: Represents the URL associated with the Cookie.
Name: The name of the Cookie to delete.
Example of using the Remove Cookie
function with the Cookie
node
- Deleting a specific Cookie
This is the profile’s Cookies before deletion:
To delete the Cookie named guest_id
on X, you need to configure as follows:
After deletion, the Cookie on X will no longer include that Cookie:
- Deleting all Cookies
This is the profile’s Cookies before deletion:
To delete all Cookies in this profile, you can configure as follows:
After deletion, all Cookies will be removed: