Html HTML5 会话存储有多大?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15840976/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How large is HTML5 session storage?
提问by Brian M. Hunt
Although the size of localStoragehas been addressed in detail and there is a online test for it, I was wondering what the maximum size of sessionStorageis for the common browsers?
虽然localStorage的大小已经详细解决了,网上也有测试,但是我想知道常见浏览器的sessionStorage的最大大小是多少?
回答by Robert Harvey
According to this site, Firefox's and Safari's storage limit is 5MB per domain, Internet Explorer's limit is 10 MB per domain.
根据这个网站,Firefox 和 Safari 的存储限制是每个域 5MB,Internet Explorer 的限制是每个域 10MB。
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.
另外,请注意页面底部的方便图表。
回答by Behnam Mohammadi
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
破折号是无限的
回答by Taylor Henderson
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.
可以存储的数量因浏览器而异,IE 最多可以存储几 MB。还需要注意的是,存在一个允许存储无限量数据的漏洞。