What is the difference between local storage and cookies? | Sololearn: Learn to code for FREE!
+ 5

What is the difference between local storage and cookies?

31st Mar 2017, 1:41 PM
Balasan
Balasan - avatar
2 Answers
+ 11
sessionStorage, localStorage and Cookies all are used to store data on the client side. Each one has its ownstorage and expiration limit. sessionStorage: similar tolocalStorage but expires when the browser closed (not the tab). Cookie: stores data that has to be sent back to the server with subsequent requests. Source: www.quora.com
31st Mar 2017, 1:42 PM
Dev
Dev - avatar
+ 3
Thanks for your fast reply :)
31st Mar 2017, 1:42 PM
Balasan
Balasan - avatar