Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can user disable html5 sessionStorage?

can user disable the HTML5 sessionStorage just how he can disable cookies?

Also is sessionStorage will valid till page refresh? I mean what session actually mean, is it page refresh?

like image 225
Seeker Avatar asked Jul 26 '13 13:07

Seeker


People also ask

Can user turn off local storage?

Yes. HTML5 sessionStorage (and localStorage) can be disabled, and the data can also be cleared.

Can a user manipulate session storage?

Yes, users can always modify the values of their own storage. I can think of three ways right off the bat: use web browser console to run JS commands that modify storage. setup client-hosted site with client-specified DNS to run their own code that modifies storage.

Can I delete HTML5 local storage?

Click on Privacy in the left menu. Click on the browser you use and checkmark “HTML5 Local Storage” in the center. Click “Remove” at the bottom of the application.

Is sessionStorage always available?

sessionStorage is similar to localStorage ; the difference is that while data in localStorage doesn't expire, data in sessionStorage is cleared when the page session ends.


1 Answers

Yes. HTML5 sessionStorage (and localStorage) can be disabled, and the data can also be cleared.

It is easy to prevent browsers from accepting localStorage and sessionStorage.

  • In FireFox: Type “about:config” in your address bar and hit enter to view your internal browser settings. Scroll down to „dom.storage.enabled“, right click on it and hit „Toggle“ to disable the DOM Storage.

  • In Internet Explorer: Select “Extras” -> “Internet Options” -> “Advanced” Tab -> Go to “Security” -> uncheck “Enable DOM-Storage”

  • In Chrome: Open “Options” and select “Under the Hood” Tab. Click on “Content settings…”, select “Cookies” and set “Block sites from setting any data”.

Also note: There are some browser security plugins/extras/add-ons that will prevent localStorage. If localStorage / sessionStorage is vital to your page operation you should attempt a test read-write.

Regarding your other question: sessionStorage will survive a page refresh. localStorage will persist between browsing sessions and survive a browser restart.

like image 158
Bangkokian Avatar answered Oct 14 '22 06:10

Bangkokian