3 ms·
Not sure I understand the question. Persistence isn't guaranteed in any browser, but Safari is the only one with a definite 7 day limit. All browser treat these
by phillipseamore 4y ago
Not sure I understand the question. Persistence isn't guaranteed in any browser, but Safari is the only one with a definite 7 day limit. All browser treat these limits the same (e.g. engagement doesn't matter), except for browsers that support persistent storage after a user gives permission for it.
- endisneigh 4y agoChrome local storage is indefinite until cleared. So what’s the difference with respect to privacy? With safari I’ve found in practice you can’t really rely on the local storage for what it’s worth.
- phillipseamore 4y agoAh, I mentioned privacy because that's the stated reason for Apple's 7 day limit. However, when my kid clicks a link in a game, that opens an ad in Safari, which he immediately closes, shouldn't get the same storage limit as the site I built for my town to check on garbage collection days. In that scenario the storage the ad used should be cleared immediately, to protect privacy and eliminate tracking. But my garbage collection site, built to be easier than the the PDF from the township, should be allowed the 7 days (preferably more, garbage collection is every 15 days, excluding holidays). And in case the user enters his address I should be able to store it even longer than that in localStorage for his subsequent visit (usually 10-12 days later). For now I store them in cookies I set on the server-side (only for Safari users), though I really don't want to store any data server-side.