cookies stored in the browser, after you close the browser opens again, there is any course, of course, there may be some validity. ( There is only one computer, the same browser )
sessionStorage saved in the browser, the browser is closed is lost.
localStorage stored on hard disk, forever.