Response - Set Cookies node
The Response - Set Cookies node allows you to define and send Cookies to the client as part of the HTTP response.
This node is available in: Authentication, Admin, Self Service, API, Consent, Library, Custom, User Defined
Node configuration
You can configure cookie properties and security settings according to your requirements.
Name
Specifies the name of the cookie.
Value
Defines the value assigned to the cookie. It can be static or dynamically set using flow variables.
Path
Defines the URL path for which the cookie is valid. The cookie will be sent only for requests matching this path.
Domain
Specifies the domain for which the cookie is valid.
SameSite
Controls how cookies are sent with cross-site requests:
- None: Cookie is sent with all requests (requires Secure flag)
- Lax: Cookie is sent with top-level navigation requests
- Strict: Cookie is only sent for same-site requests
Max Age
Defines the lifetime of the cookie in seconds. After this time, the cookie expires.
Session Cookie
When enabled, the cookie is stored only for the duration of the browser session and is deleted when the browser is closed.
Secure
Prevents client-side scripts (e.g., JavaScript) from accessing the cookie, improving security against XSS attacks.
HTTP Only
Marks the cookie as HTTP-only, preventing client-side scripts from accessing it.
Signed
Indicates that the cookie is signed to prevent tampering. The server can verify the integrity of the cookie value.
Default output node
- Success
- Failure
JSON metadata
{
"name": "set_cookie",
"active": true,
"bundleName": "default-nodes",
"bundleVersion": "1.0",
"nodeName": "SetCookie",
"category": "server_side_components",
"deprecated": false,
"displayName": [{
"lang": "en",
"value": "Response - Set Cookies"
}, {
"lang": "it",
"value": "Response - Set Cookies"
}
],
"index": 6,
"inputs": [{
"name": "Input"
}
],
"outputs": [{
"name": "Success",
"level": "success"
}, {
"name": "Failure",
"level": "error"
}
]
}