Skip to navigation

Save cookie (detailed)

Referenced In

Fields

Validation applies the defaults shown here.

FieldTypeDescriptionDefault
namestringRequired. Name of the specific cookie to save.

Pattern: ^[A-Za-z0-9_.-]+$
—
variablestringOptional. Environment variable name to store the cookie as JSON string. To read it later as $NAME, use only letters, digits, and underscores.

Pattern: ^[A-Za-z0-9_.-]+$
—
pathstringOptional. File path to save the cookie, in Netscape cookie format. A relative path resolves against directory, or against outputDir when directory is omitted.

Minimum length: 1. Pattern: \S
—
directorystringOptional. Directory to save the cookie file in. A relative directory resolves against the spec file. Omit it to save under outputDir.

Minimum length: 1. Pattern: \S
—
overwritebooleanOptional. Whether to overwrite existing cookie file.false
domainstringOptional. Specific domain to filter the cookie by (optional).—

Examples

{
"name": "example",
"variable": "example",
"path": "example",
"directory": "example",
"overwrite": false,
"domain": "example"
}