I have to clear the session with retrieving the specific item.
there are lot of session items to clear but apart from one cart item
now i am doing like this to retrieve the cart value in session storage
var cart = window.sessionStorage.getItem('cart');
window.sessionStorage.clear();
window.sessionStorage.setItem('cart', cart);
for it's working fine, now i have to retrieve 7 different items (there are more than 40 session items present in my session),
is there any good way to achieve the same?
Note: i have only retrieve items keys like ['cart' 'user' 'logTime'] but not clear item keys