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.
The following is a list of sample source code snippets that matched your search term. Source code snippets are chunks of source code that were found out on the Web that you can cut and paste into your own source code. Whereas most of the sample source code we've curated for our directory is for consuming APIs, we occasionally find something interesting on the API provider side of things. If you know of some sample source code that would be of interest to the ProgrammableWeb community, we'd like to know about it. Be sure to check our guidelines for making contributions to ProgrammableWeb.