简体   繁体   中英

Web Storage (sessionStorage and localStorage) in private browsing mode (incognito)

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?

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

Chrome 将在私有窗口中支持localStoragesessionStorage

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM