DIFFERENCE IN LOCAL STORAGE AND SESSION STORAGE (HTML5)

Difference in Local Storage and Session Storage (HTML5)

LocalStorage: Stores data with no expiration date, and gets cleared only through JavaScript, or clearing the Browser Cache / Locally Stored Data.

SessionStorage: Similar to localStorage but expires when the browser is closed (not the tab).

 
 
 
 
 
 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>