HTML5 Session Storage

  • Stores data for one session
  • The data is deleted when the browser’s window is closed.

<script>
    sessionStorage.variableName = "value";
    alert(sessionStorage.variableName);
    sessionStorage.removeItem("variableName");
    alert(sessionStorage.variableName);
</script>

About the Author

aditya bajaj
Music and Blogging get my love.

Be the first to comment on "HTML5 Session Storage"

Leave a comment

Your email address will not be published.


*