3

Currently we are using localStorage as persistent storage in our application. But we noticed that it is prone to data loss. Here is some links which supports this:

HTML5 Local Storage Not Persistent

localStorage data persistence

http://www.sencha.com/forum/showthread.php?132952-localstorage-doesn-t-save-all-data

So now I'm searching for a new solution. It will be good if this solution is supported by chrome/safari at iOS/Android. Could someone suggest something?

Community
  • 1
  • 1
Marat Faskhiev
  • 1,282
  • 6
  • 17
  • 37

1 Answers1

3
  1. if its a website then, there is no means of persistent storage on browser. localstorage, database, cookies, everything is erased if user don't require them. So the only option would be to store the data on the server.

    OR

  2. if it is a mobile app (phonegap), then you can use SQL Lite.

Community
  • 1
  • 1
Naeem Shaikh
  • 15,331
  • 6
  • 50
  • 88
  • For 2 - remember though I can still use remote debugging and delete the data. Nothing on the client is safe from - well - the client. – Raymond Camden Jan 19 '15 at 13:09