Persistent storage (localStorage polyfill, Web Storage (HTML5)) - nschonni/wet-boew GitHub Wiki

français

Table of Contents

Overview

Project lead: Paul Jackson (@pjackson28)

Description

The HTML5 Web Storage localStorage object is used to store data persistently (no expiration date). Because some browsers do not support this functionality natively, this polyfill emulates the same functionality.

Benefits

  • In cases where browser don't support localStorage, the polyfill is automatically loaded.

Recommended usage

Storing data persistently (no expiration date).

Example Code

value = localStorage.getItem('variable');
localStorage.setItem('variable', value);

Examples

Development

Persistent storage functionality is dependent upon native support for the HTML5 Web Storage localStorage object or the localStorage polyfill.

The code for the localStorage polyfill is located within the source folder of WET:

Known Issues

There are no known issues at this point in time.

Version History

References

⚠️ **GitHub.com Fallback** ⚠️