HTML5 web storage allows your web apps to save data locally in the user’s browser. The information is kept in name/value pairs, and a web page can only access information that it has stored on its own.
Simply said, web storage enables the local storing of huge volumes of application data. It has no impact on the performance of your website.
To store data locally, there are two forms of web storage:
Local storage: This method of data storage does not have an expiration date. Even if the user’s browser is closed and reopened, the data stored in the local storage will remain accessible.
Session storage: It only saves data for one session. Once the user’s browser is closed, the data will be erased from the browser, and the session will be lost.