the difference is that while data in localStorage doesn't expire, data in sessionStorage is cleared when the page session ends.
Add a description, image, and links to the javascript-by-cwh topic page so that developers can more easily learn about it.