A DOM window's session storage object can be retrieved from the window's
A storage object stores an arbitrary set of key-value pairs, which may be retrieved, modified and removed as needed. A key may only exist once within a storage object, and only one value may be associated with a particular key. Keys are stored in a particular order with the condition that this order not change by merely changing the value associated with a key, but the order may change when a key is added or removed.
| || ||The number of keys stored in the session store. Read only.|
Clear the content of this storage bound to a domain or an origin.
Returns from session storage the data corresponding to the specified key.
DOMString getItem( in DOMString key );
- The key for which data should be returned.
nsIDOMStorageItem object describing the data corresponding to the specified key, or
null if no data exists for the given key.
Returns the key for the item stored at the specified index in the data store.
DOMString key( in unsigned long index );
- The index for which the corresponding key should be returned.
A string containing the requested key.
- There is no key at the specified index.
Given a key, removes the corresponding entry from the session store.
void removeItem( in DOMString key );
- The key for which data should be removed from storage.
Sets the value corresponding to a given key. If the key does not already exist, a new key is added, associated with the specified value. If the key already exists, the existing value is replaced with the specified value.
void setItem( in DOMString key, in DOMString data );
- The key for which data should be set.
- The data to associate with the specified