The sessionStorage object is equal to the localStorage object, except that it stores the data for only one session. The data is deleted when the user closes the browser window.
SessionStorage allows to save key/value pairs in a web browser.
You can create a session by using sessionStorage
The sessionStorage object has five methods:
getItem(key) – retrieves the value for the given key or null if the key doesn’t exist.
setItem(key, value) – sets the value for the given key.
removeItem(key) – removes the key completely.
key(position) – returns the key for the value in the given numeric position.
clear() – removes all key-value pairs.
See More ->http://www.nczonline.net/blog/2009/07/21/introduction-to-sessionstorage/