Possible Duplicate:
localStorage object is undefined in IE
The following code gives me SCRIPT5009: 'Storage' is undefined
in IE9. It works in Chrome, Safari, Firefox.
Storage.prototype.setObject = function(key, value) {
this.setItem(key, JSON.stringify(value));
}
udpate I'm serving the page from Apache server, not accessing it from local file system so the following don't apply:
localStorage object is undefined in IE
local storage in IE9 fails when the website is accessed directly from the file system
update 2 found problem, see my answer.