Class

device/storage/Cookie

device/storage/Cookie()

Constructor

# new device/storage/Cookie()

To provide storage interface using Cookies

Extends

Methods

# protected _doClear()

To clear the local storage

# get(key) → {*}

Retrieve a stored value from the cookie.

Parameters:
Name Type Description
key String

The key of the value that you want to retrieve the value from.

  • The value of the key. null will be returned if the key does not exist.
*

# set(key, value)

Set a key-value pair into the cookie.

Parameters:
Name Type Description
key String

the key to store the value to

value *

the value to store

# unset(key)

to unset the variable

Parameters:
Name Type Description
key String

the key to store the value to