The SessionStorage object stores the data for one session. The data is deleted when the user closes the browser window. like below we can create and access a SessionStorage here we created "name" as session <script type="text/javascript"> SessionStorage.name="PCDS"; document.write(SessionStorage.name); </script>
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
<script type="text/javascript">
SessionStorage.name="PCDS";
document.write(SessionStorage.name);
</script>