Options
All
  • Public
  • Public/Protected
  • All
Menu

The parameters used for constructing browser cookies

Hierarchy

  • ICookie

Index

Properties

Optional domain

domain: string

Optional expires

expires: number

unix epoch timestamp (in ms) Javascript Example: (new Date()).getTime() + (1000 * 60 * 60) // <-- expires in 1 hour

Optional httpOnly

httpOnly: boolean

chrome version of httponly

Optional httponly

httponly: boolean
deprecated:

for WebKit backend. for Chrome backend, use httpOnly

name

name: string

Optional path

path: string

Optional sameSite

sameSite: "Strict" | "Lax" | "None"

"Strict" or "Lax"

Optional secure

secure: boolean

Optional session

session: boolean
deprecated:

all cookies are good for the duration of the request

Optional url

url: string

new for Chrome backend. (not available on WebKit).

value

value: string