Constructor
# new device/storage/Session()
Provide the HTML5 SessionStorage as one of the XDK Storage.
Extends
Methods
# get(key) → (nullable) {String}
Return the item, identified by the key, from the storage. If the key does not exist in the storage, null will be returned.
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
keys |
values
String
# set(key, value)
Add or update an item to the sessionStorage.
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
|
value |
String
|
# unset(key)
Remove the item, identified by the key, from the storage.
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|