Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is session storage and how can you create one?

user-image
Question ajoutée par Feras Abualrub , Web Solutions Manager , Qistas for Information Technology
Date de publication: 2015/04/22
Pushpendra Chouhan
par Pushpendra Chouhan , Worked 6 months for my final year project (Jan 2014- June 2014) , Universal Informatics

session storage is used to get the session storage object. It is similar to local storage but the difference is that local storage has no expiration but session storage expires when user closes the browser window.

 <script type="text/javascript">

if(sessionStorage.refresh)

{

   sessionStorage.refresh = Number(sessionStorage) +1;

}

else

{

session.Storage.refresh=1;

}

</script>

* Refresh page to increase number of page hit.

* close window then try again.

More Questions Like This