delete session javascript

JavaScript
// To remove only one session
sessionStorage.removeItem('itemName'); 
// To remove all sessions 
sessionStorage.clear();  
Source

Also in JavaScript: