问题
I have seen posted limits on client-side storage: LocalStorage: sizes are 5MB Sqlite storage: 5MB expandable by user request.
First, are these numbers still correct? ...and how about "sessions storage" too?
Secondly, are these storage schemes mutually exclusive? ... or is this limit an aggregate of all client-side storage - LocalStorage, SessionStorage, Cache (via manifest) and Sqlite data.
Thanks for your help.
Greg
回答1:
As per my knowledge that 5mb shared across local storage,session storage.If we close the browser session storage keys are removed as data saved per session. And this 5mb is per domain. i.e., browser will allocate 5mb for abc.com ,5mb for xyz.com. etc.. And abc.com cannot access xyz.com local storage elements.
回答2:
There is three type of Storage available in HTML5
- LocalStorage
- SessionStorage
- WebSQL Storage
LocalStorage :- used for save data at client side.it is like cookies but it wont sent to every HTTP request.
SessionStorage :- used for save data for a session.
WEBSQLStorage :- used for save data in databases. by default limit is 5MB.but it's size is vary accross the browsers
来源:https://stackoverflow.com/questions/5914143/html5-local-storage-and-sqlite-storage-limits