Monday, July 6, 2015

Differentiate between localStorage and sessionStorage objects.



- localStorage object stores the data without an expiry date while sessionStorage object stores the data only for one session.
- With localStorage object, data will not be deleted when the browser window is closed while the data is deleted when the browser window closes with sessionStorage objects.

No comments:

Post a Comment