Skip to content

GetCookie

Miriam McMahon edited this page Apr 27, 2023 · 6 revisions

Description

Get the value of a cookie from cookie storage.

Parameters

Parameter Name Description Type Resolved Type Required
Name The name of the required cookie Value String Yes
Domain The domain of the required cookie Value String Yes
Path The path of the required cookie; defaults to / Value String No
VariableName The name of the variable to create or update with the cookie's value String String Yes

Compatibility

This command was introduced in Safeguard 2.8

Examples

Example:

{
    "GetCookie": {
        "Name": "session_cookie",
        "Domain": "example.com",
        "Path": "/api",
        "VariableName": "SessionId"
    }
}