How large is HTML5 session storage?

JavascriptHtmlLocal StorageSession Storage

Javascript Problem Overview


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?

Javascript Solutions


Solution 1 - Javascript

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.

Solution 2 - Javascript

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBrian M. HuntView Question on Stackoverflow
Solution 1 - JavascriptRobert HarveyView Answer on Stackoverflow
Solution 2 - JavascriptTaylor HendersonView Answer on Stackoverflow