Menu
I read the description of localStorage and sessionStorage
on [url]http://www.w3schools.com/html/html5_webstorage.asp
I understand the long term use of localStorage,
but I do not see how a sessionStorage values vary much from a global variable in any program.
It appears to me that both variable values are lost when the browser is exited.
Is there any particular advantage to either variable storage technique (sessionStorage vs. global variable)?