13

BACKGROUND

The HTML5 Web Storage feature in modern browsers is accessed through Javascript commands such as:

sessionStorage.setItem("username", "John");
localStorage.setItem("username", "John")

The site Can I use indicates that browser support is near 90%. However, in the "Known Issues" tab, Can I use says:

In private browsing mode, Safari, iOS Safari and the Android browsers do not support setting localStorage.

MY QUESTION

In private browsing mode, do Safari, iOS Safari and the Android browsers still support sessionStorage?

Gras Double
  • 15,901
  • 8
  • 56
  • 54
Justin Elkow
  • 2,833
  • 6
  • 28
  • 60
  • 1
    I was looking for an official answer not just a test of one browser. This is unfortunate since sessionStorage, as the name implies, should be allowed in private browsing mode. – Justin Elkow Sep 25 '14 at 22:40
  • It's disabled with some settings in some browsers. A great work-around available in this question: http://stackoverflow.com/questions/35607724/ios-safari-private-browsing-localstorage-and-sessionstorage-support/43670472#43670472 See also: http://stackoverflow.com/questions/21159301/quotaexceedederror-dom-exception-22-an-attempt-was-made-to-add-something-to-st – theUtherSide Apr 28 '17 at 01:30
  • Its 2017 now , has anything changed in regards to private browsing mode (incognito) ? – Nigel Fds Jun 19 '17 at 05:06

2 Answers2

9

Android and chrome I believe allow you to access old keys in session storage, but not write to it. I know that Safari will not allow any use of session or local storage.

similar so question

Community
  • 1
  • 1
jumpdart
  • 1,702
  • 16
  • 35
1

Chrome will support localStorage and sessionStorage in private window.

Srikrushna
  • 4,366
  • 2
  • 39
  • 46
  • 2
    but when? could you provide an official link where a such thing is stated? so far not yet supported (jan 2021) – Paolo Jan 06 '21 at 13:04