Skip to content

Instantly share code, notes, and snippets.

@zottto
zottto / sessionStorage.js
Created Aug 16, 2012 — forked from tagawa/sessionStorage.js
sessionStorage polyfill
View sessionStorage.js
/*
* Based on: http://www.quirksmode.org/js/cookies.html
* and https://github.com/wojodesign/local-storage-js/blob/master/storage.js
* and https://gist.github.com/350433
* License: http://www.opensource.org/licenses/MIT
*/
(function(window) {
'use strict';
window.sessionStorage = window.sessionStorage || {