Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

List of parameters

Имя

Тип

Описание

0

domain

string

Domain of the cookie (e.g. www.google.com, example.com).

1

isDomain

boolean

Reserved. Not used. However, the value must be specified.

2

path

string

The path of the cookie

3

secure

boolean

TRUE if the cookie is marked as secure (i.e. its scope is limited to secure channels, usually HTTPS).

4

expirationDate

DateTime

Format: mm/dd/yyyy hh:mm:ss. The value is optional. However, this only makes sense if session=true.

You can also specify in Unix format - the number of seconds since 1970.1.1 0:0:0

5

name

string

The name of the cookie.

6

value

string

The value of the cookie.

7*

httpOnly

boolean

TRUE if the cookie is marked as HttpOnly (i.e. the cookie is not available for client scripts). The default value is FALSE.

8*

session

boolean

TRUE if the cookie is marked as a session cookie (i.e. the cookie will be deleted after the browser is closed). The default value is FALSE.

9**

sameSite

enum

The status of the cookie on the same site (i.e. whether the cookie is sent with cross-site requests). Values: Lax, Strict, None, Extended, Unspecified. The default value is Unspecified

10***

priority

enum

Sets the procedure for deleting cookies when the storage is full. Values: Low, Medium, High. The default value is Medium

...