Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How large is HTML5 session storage?

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?

like image 404
Brian M. Hunt Avatar asked Apr 05 '13 18:04

Brian M. Hunt


People also ask

Does HTML5 have session storage?

HTML5 Web storage includes local storage and session storage. Both can store data on client side, same like cookies. But Cookies can store upto 4kb data in string type, whereas HTML5 web storage can store 5mb, (Upto 10mb in some browsers) data in key-value pair.

What is the size of session storage?

SessionStorage is used for storing data on the client side. Maximum limit of data saving in SessionStorage is about 5 MB. Data in the SessionStorage exist till the current tab is open if we close the current tab then our data will also erase automatically from the SessionStorage.

What is HTML5 session storage?

Session storage — The session storage uses the sessionStorage object to store data on a temporary basis, for a single browser window or tab. The data disappears when session ends i.e. when the user closes that browser window or tab.

Does HTML5 support offline storage?

Apart from new elements in HTML5, this new web technology offers us Offline Storage. There are a number types of offline storage, and in this article we will specifically discuss sessionStorage and localStorage.


1 Answers

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.

like image 162
Robert Harvey Avatar answered Sep 28 '22 08:09

Robert Harvey