Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 589 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 589 Bytes

jquery.sessionStorage

jQuery sessionStorage implementation. Interfaces like $.data

Usage Examples

Saving to sessionStorage:

$(document).sessionStorage("full_name", "Joe Bloggs");
$(document).sessionStorage("person_info", {"first_name": "Joe", "last_name": "Bloggs", "age": 52});

Getting values from sessionStorage:

$(document).sessionStorage("full_name"); // returns string
$(document).sessionStorage("personal_info"); // returns json object

Browser Support

Supported by all major browsers.

http://caniuse.com/#feat=namevalue-storage