Originally Posted by Philip M
Personally I would use a cookie. I know that local storage is fashionable, but at least cookies work in all browsers. I do not really see any reason to use local storage unless the amount of data to be stored is large. Another weakness of local storage is that it doesnít work cross-browser. In other words, data written to local storage by a page running in Firefox canít be read by the same page running in Chrome, and vice versa. This could be a significant defect.
localStorage works in all browser since IE8, no compat concerns there. The file:// mode in IE, which js is not really meant for, is the only "exception" i know of. Many Many people block cookies using an add-on, and IE7 is < 1%, so it would not suprise me if localStorage is actually more reliable than cookies in the real world. A good litmus? Advertisers use it.
I don't get the point about cookies: IE won't read chrome's cookies any better than it would its localStorage, no disadvantage there.
considering the performance hits that cookies bestow, i avoid them by any means i can.
BROWSER STATS [% share]
(2013/10/31) IE7:0.5, IE8:8.6, IE9:5.3, IE10:12.3, FF:17.7, CH:41.8, SF:8.1, MOBILE:20.4