Limit of 5MB per app per browser. According to the HTML5 spec, this limit can be increased by the user when needed; however, only a few browsers support this
So i read the Client-side Storage introduction article. I do have a question.The company I'm doing my work experience is having trouble with the Client-side storage of all browsers as the size limits are met. We're developing an app which requires offline capability and uses lots and lots of data on the mobile device.Is there a way to automatically increase the maximum size, or set it to unlimited size, for the application? Or is there a way to achieve this with user confirmation?Our problem is that the application crashes when the limit is hit, which happens during synchronization, so not all of the required user data is yet present.Thx in advance.
Currently the only browser I know of that allows the user to set the size of local storage is safari .
But in general I do not recommend using local storage for data heavy storing. Think of it rather as advanced cookies. The best use case is if you want to serialize the state of your views to json ,so that you can quickly recover it when the user revisits your app.
Local storage is absolutely NOT recommended for storing sensitive data, it is unsafe.
If you need to persist a lot of data on a fat client I suggest taking a look the HTML file api.
It gives you a sandboxed space on the clients machine with unlimited storage. The downside is, that it is a HTML 5 feature, so no older browser.
Good luck,
Oliver