top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

What is the sessionStorage Object in html5 ? How you can create and access that?

+1 vote
59 views
What is the sessionStorage Object in html5 ? How you can create and access that?
posted Aug 29, 2014 by Deepak Negi

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

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/

answer Sep 1, 2014 by Amarvansh
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...