How large is HTML5 session storage?

荒凉一梦 提交于 2019-12-17 18:45:16

问题


Although the size of localStorage has been addressed in detail and there is a online test for it, I was wondering what the maximum size of sessionStorage is for the common browsers?


回答1:


According to this site, Firefox’s and Safari’s storage limit is 5MB per domain, Internet Explorer’s limit is 10 MB per domain.

However, according to this site which tests your web browser local storage capabilities, on my machine:

Browser        LocalStorage         SessionStorage
-------        ------------         --------------
Chrome              5M                   5M
Firefox             5M                Unlimited
IE11                5M                   5M

Also, note the handy chart at the bottom of the page.




回答2:


Mobile

Browser | Chrome | Android Browser | Firefox | Safari | Safari | iOS WebView | iOS WebView
Version | 40     | 4.3             | 34      | 6, 7   | 8      | 6, 7        | 8
Max     | 10MB   | ∞               | 10MB    | 5MB    | ∞      | 5MB         | ∞

Desktop

Browser | Chrome | Firefox | Safari | Safari | IE      | IE
Version | 40     | 34      | 6, 7   | 8      | 9       | 10, 11
Max     | 10MB   | 10MB    | ∞      | ∞      | 10MB    | 10MB

Dash is Unlimited




回答3:


The amount able to be stored varries from browser to browser with IE being able to store up to a couple MB. It is also good to note that there is a vulnerabilty that allows an unlimited amount of data to be stored.



来源:https://stackoverflow.com/questions/15840976/how-large-is-html5-session-storage

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