Przejdź do głównej zawartości

Function: setCookie()

setCookie(name, value, options?): void

Set cookie (client-side only).

secure defaults to auto-detect from location.protocol (true on HTTPS).

Parameters​

name​

string

value​

string

options?​

maxAge?​

number

path?​

string

sameSite?​

string

secure?​

boolean

Returns​

void