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.
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.
Chrome will support localStorage and sessionStorage in private window.
©2020 All rights reserved.