Cake & Arrow interview question

Describe the difference between a cookie, sessionStorage and localStorage.

Interview Answer

Anonymous

11 July 2017

localStorage and sessionStorage both store information on the browser, but localStorage data remains there beyond the browser session -- though both can be removed by the user at any point. Cookies also store information but are generally used for authentication purposes.