Questions tagged [web-storage]

The web storage is a standardised way of providing larger amounts of client-side storage and of more appropriately "partitioning" session storage and locally persistent storage.

The web storage is a standardised way of providing larger amounts of client-side storage and of more appropriately "partitioning" session storage and locally persistent storage. Web storage provides a much larger initial local storage (5MB per domain), unlimited session storage (limited only by system resources) and successfully partitions local and session storage so that only the data you want to persist is persisted in local storage and data you want to be transient stays transient.

Note: Use or for questions specific to any one.

233 questions
80
votes
4 answers

Where the sessionStorage and localStorage stored?

Where are sessionStorage and localStorage stored on the client's computer? Could you tell me the path?
OammieR
  • 2,800
  • 5
  • 30
  • 51
29
votes
3 answers

When should I use html5 sessionStorage?

I've learned difference between sessionStorage (persist during session) and localStorage (persist forever if not deleted). I can see that localStorage can be used as better version of cookie. (more size, not traveling to server for each HTTP request…
Meow
  • 18,371
  • 52
  • 136
  • 180
26
votes
3 answers

Where does Firefox store javascript/HTML localStorage?

I have made an advanced functional prototype of a simple web application, and delays have pushed this into the position of going "live". At the moment, it just uses JavaScript's localStorage facility to keep track of what's happening, but due to…
Stephen
  • 19,488
  • 10
  • 62
  • 83
26
votes
4 answers

copy paste big dictionary into chrome console

what im essentially doing is var dictionary = [ HERE I PASTE ALMOST 200k ENTRIES ] and it throws : Error saving setting with name: consoleHistory, value length: 8613059. Error: Failed to set the 'consoleHistory' property on 'Storage': Setting…
24
votes
3 answers

How to use navigator instead of window.webkitStorageInfo HTML5 File-system API?

So there is a similar post found here html-5-filesystem-access-type-error. However, I'm not very satisfied with the conclusion because I do not feel it actually answered the question - the solution given is the deprecated code solution. Does anyone…
Arthur Weborg
  • 8,280
  • 5
  • 30
  • 67
20
votes
1 answer

HTML5 web storage: can different websites overwrite each other’s data on a user’s computer?

I have a few questions regarding the concept of HTML5 storage. I went through the w3c specification, books and tutorials on the same, but still I am a bit unclear about certain concepts: Assume that I access Website A. Some JavaScript runs in my…
codingsplash
  • 4,785
  • 12
  • 51
  • 90
18
votes
4 answers

How to view the HTML web storage in Chrome and Firefox

How can I view HTML web storage in Chrome and Firefox?
MatBanik
  • 26,356
  • 39
  • 116
  • 178
17
votes
3 answers

How is HTML5 WebStorage data physically stored?

In using the HTML5 WebStorage functionality, I know that certain browsers, like Chrome, have developer tools that enable users to browse thru the contents of their WebStorage for debugging and trouble-shooting purposes. I was wondering if it is…
Joe Alfano
  • 10,149
  • 6
  • 29
  • 40
16
votes
7 answers

How to store/stash JavaScript event and reuse it later?

From https://developers.google.com/web/fundamentals/app-install-banners/#trigger-m68 let deferredPrompt; window.addEventListener('beforeinstallprompt', (e) => { e.preventDefault(); // Stash the event so it can be triggered later. …
Limon Monte
  • 52,539
  • 45
  • 182
  • 213
16
votes
1 answer

HTML5 sessionStorage limits?

A few questions regard HTML5's sessionStorage: Does the 5MB limit on localStorage include sessionStorage? (ie. is it really a 5MB limit on the WebStorage API) If not does sessionStorage have a maximum size limit similar to localStorage? I found…
Cubed Eye
  • 5,581
  • 4
  • 48
  • 64
15
votes
3 answers

What's the best way use caching data in js on client side?

My application receives data from the another server, using API with limited number of requests. Data changing rarely, but may be necessary even after refresh page. What's the best solution this problem, using cookie or HTML5 WebStorage? And may…
Artem Zubkov
  • 559
  • 1
  • 14
  • 29
14
votes
1 answer

LocalStorage in chrome Incognito Mode

So In my Angular 1.5 application, I want to retain data on page load also, So I am using $window.localStorage. I am reading some value from localStorage and it also works fine in incognito mode. The page refreshes and yet the values are…
StrugglingCoder
  • 4,781
  • 16
  • 69
  • 103
13
votes
2 answers

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…
Justin Elkow
  • 2,833
  • 6
  • 28
  • 60
13
votes
3 answers

Share dom storage between http and https

I would like a method of storing information on the client that can be accessed by both the SSL and nonSSL version of my site. localStorage is a great mechanism but it can only be accessed by the current protocol. I'd like to be able to store a…
jeremysawesome
  • 7,033
  • 5
  • 33
  • 37
13
votes
3 answers

Most efficient way to store large arrays of integers in localStorage with Javascript

*"Efficient" here basically means in terms of smaller size (to reduce the IO waiting time), and speedy retrieval/deserialization times. Storing times are not as important. I have to store a couple of dozen arrays of integers, each with 1800 values…
nickf
  • 537,072
  • 198
  • 649
  • 721
1
2 3
15 16