I've learned difference between sessionStorage (persist during session) and localStorage (persist forever if not deleted).
I can see that localStorage can be used as better version of cookie. (more size, not traveling to server for each HTTP request like cookie does).
But for sessionStorage, I'm thinking when should I use it effectively?
I thought about user inputs into text fields in pageA and then moves onto pageB within the same tab or browser window, pageB can look up sessionStorage.
I can't really expand my guess more than the scenario above. Could anyone tell me how can sessionStorage be used?
 
     
     
    