1.

What is the difference between local storage session storage and cookies?

Answer»
Local STORAGESession StorageCookies
It stores data with no expiration dateIt stores data only for a session (until the tab is closed)These are TEXT files that contain a SMALL piece of data
The storage limit is maximum compared to two.The storage limit is larger than the cookie.The limit is LESS than 4KB for cookies.
The data stored in Local Storage can be easily read and change.The data stored in Session Storage can also be easily read and change.Data can only be read in the form of PLAIN text.
Local Storage allows user to store Javascript primitives.Session Storage also allows you to store Javascript primitives.Cookies only allow you to store strings.


Discussion

No Comment Found