Answers for "js delete session storage"

2

delete session javascript

// To remove only one session
sessionStorage.removeItem('itemName'); 
// To remove all sessions 
sessionStorage.clear();
Posted by: Guest on June-18-2020
5

javascript clear localstorage

window.localStorage.clear(); //clear all localstorage
window.localStorage.removeItem("my_item_key"); //remove one item
Posted by: Guest on July-31-2019
2

remove session storage

sessionStorage.removeItem('key');
Posted by: Guest on June-18-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language