There are two main web storage types, which can be used to store data locally:
Local storage: This stores data with no expiration date. The data in local storage would persist even when the user’s browser is closed and reopened.
Session storage: This is similar to local storage, except that it stores data for one session only. Once the user’s browser is closed, that session would be lost and the persisted data will be deleted from the browser.
Both the storage are almost same except the data persistent time.
The web browser does not send data from these storage to server unlike coockie.