cookies

cookies

factory cookies

Description:
  • Browser side cookie interface.

    • This provides small data persistent storage.

Methods

(static) get(name) → {string}

Description:
  • Gets a cookie value for the current domain.

Parameters:
Name Type Description
name string

The cookie name.

Returns:

The cookie value.

Type
string

(static) set(name, value, durationopt)

Description:
  • Sets a cookie value for the current domain.

Parameters:
Name Type Attributes Default Description
name string

The cookie name.

value string

The cookie value.

duration double <optional>
24

The maximal duration in hours (fraction of hours is possible).