Skip to content

ClearCookie

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

Description

Remove a cookie from the cookie storage to eliminate it from future HTTP requests.

Parameters

Parameter Name Description Type Resolved Type Required
Name The name of the cookie to remove Value String Yes
Domain The domain of the cookie to remove Value String Yes
Path The path of the cookie to remove; defaults to / Value String No

Compatibility

This command was introduced in Safeguard 2.8

Examples

Example:

{
    "ClearCookie": {
        "Name": "session_cookie",
        "Domain": "example.com",
        "Path": "/api"
    }
}

Example: using variables:

{
    "ClearCookie": {
        "Name": "%{ Cooke1 }%",
        "Domain": "%{ SearchDomain }%",
        "Path": "%{ SelectedPath }%"
    }
}