You are here

Web Storage API - Source Code

The Web Storage API is an HTML browser-based API offering an alternative data storage method to cookies. An example use case is when a user may be completing multiple transactions in different windows with the same provider. To solve issues that arise with cookies, developers can use the Web Storage sessionStorage IDL attribute to store relevant information in a browser's session, enabling the same data to be dispersed across multiple pages that are accessing the same site in the same window. Furthermore, the localStorage IDL attribute can be used to store browser larger amounts of site-specific information accessible across multiple windows. The Web Storage API documentation comes in the form of an abstract written and edited by Google and W3C representatives.