HTML5: “local storage” and “sqlite storage” Limits

。_饼干妹妹 提交于 2019-12-23 01:44:38

问题


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

  1. LocalStorage
  2. SessionStorage
  3. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!