0 votes
in JavaScript by
How is Local Storage different from Session Storage?

1 Answer

0 votes
by
  1. Local Storage – In local storage, the data will not be returned to the server at every HTTP request (images, HTML, CSS, JavaScript, etc). It helps to reduce the traffic between server and client.  
  2. Session Storage – Session Storage is quite similar to the local storage. However, unlike data storage in local systems which has an expiry time, data stored using session storage gets cleared once the page session ends. 
...