List of parameters
Имя | Тип | Описание |
---|---|---|
domain | string | Domain of the cookie (e.g. www.google.com, example.com). |
expirationDate | double? | The expiration date of the cookie. It is calculated by the number of seconds since the beginning of the Unix epoch (101.101.1970 00:00:00). If there is no value or if the value is low (<0.01), the cookie file will be considered session session=true. |
hostOnly | bool? | Reserved. Not used. |
httpOnly | bool? | True if the cookie is marked as HttpOnly (i.e. the cookie is not available for client scripts). The default value is False. |
name | string | The name of the cookie |
path | string | The path of the cookie |
sameSite | string | The status of the cookie on the same site (i.e. whether the cookie is sent with cross-site requests). Values: |
secure | bool? | True if the cookie is marked as secure (i.e. its scope is limited to secure channels, usually HTTPS). The default value is False. |
session | bool? | Reserved. Not used. It is set via the |
storeId | string | Reserved. Not used. |
value | string | The value of the cookie. |
id | int? | Reserved. Not used. |
Examples for import
Code Block | ||||
---|---|---|---|---|
| ||||
[ { "domain": "some.host.io", "expirationDate": -1.0, "httpOnly": true, "name": "cookie-name-1", "path": "/", "sameSite": "strict", "secure": true, "value": "cookie-value-1", }, { "domain": "some.host.io", "expirationDate": 1672520400.0, "httpOnly": true, "name": "cookie-name-2", "path": "/", "sameSite": "Unspecified", "secure": true, "value": "cookie-value-2", }, { "domain": "some.host.io", "expirationDate": 1704056400.0, "httpOnly": false, "name": "cookie-name-3", "path": "/", "sameSite": "Unspecified", "secure": true, "value": "cookie-value-3", } ] |
...