Cookie

Cookie

For cookie handling.

Methods

# (static) getCookie(cName) → {string|undefined}

Gets a cookie.

Parameters:
Name Type Description
cName string

Cookie name.

Returns:

The cookie value associated with cName, or undefined if not found.

Type
string | undefined

# (static) setCookie(cName, value, exdays, path)

Sets a cookie.

Parameters:
Name Type Description
cName string

Cookie name.

value string

Cookie value.

exdays number

Days until expiration.

path string

Cookie path.