views:

116

answers:

1

I'm using localStorage in my JS application and I was wondering why IE9 claims localStorage == undefined. As far as I know, IE8 supports it, is here any way to get it working in the new version?

+3  A: 

Are you testing this on a local HTML file? i.e. a file:/// URLs?

localStorage is only available on HTTP websites. That hasn't changed in IE9 Dev Preview.

Alexandre Jasmin