I think your best bet is to use local storage with its most widely used standard for storage options available under HTML5.
IndexedDB has been over-designed (in my opinion) and is not supported (yet) for all Mozilla requirements, which is better than sliced โโbread , and the future of WebSQL looks a bit uncertain since Mozilla refuses to implement it and it is no longer processed due to a deadlock between W3C and the browser providers that actually implemented it (Chrome / Safari / Opera).
Currently, there is a battle of browser explosion due to the introduction of smartphones, so it is difficult to determine which part of the market supports HTML5 LocalStorage functions, but using statcounter I was able to calculate between Chrome (4+), Firefox (3.+), Safari (4+) , Opera (10.5+) and IE (8+), including iPhone and Android devices that you have captured about 80-85% of the market, and this figure will grow at a speed of 1-2% per month. The rest is IE 6/7 (which stubbornly tends to hang), older versions of new browsers (with update features that usually kept them current), and some mobile browsers got stuck in the Stone Age.
As for the older options, I would add Saving user data for IE6 / 7 to the list provided by @ user998692, but one way or another it will get bogged down with a lot of problems with browser incompatibility and support for hij technology, which will complicate your code base and testing, and accordingly increase delivery times (and cost). However, if you want to go this route, I would recommend you take a look at PersistJS , because the guys who built it did a lot of the work that you will need already.
These days, itโs worth looking more forward (at how the market will look in 1-2 years, when your application will be distributed and get a wide user base) than back, so I would say that HTML5 LocalStorage is probably an option.
Steven de salas
source share