manton
manton

I get Apple’s stance on privacy and tracking, but clearing cookies and especially localStorage after 7 days inactivity is just too extreme. Hurts legitimate usage of these web APIs.

|
Embed
Progress spinner
zastrow@mastodon.social
zastrow@mastodon.social

@manton is that what is going on?! I've been thinking I have some setting turned on or one of my extensions is freaking out.

|
Embed
Progress spinner
manton
manton

@zastrow Yep, took me a while to figure out why sessions were so short-lived. I like Safari, but considering moving away just because of this.

|
Embed
Progress spinner
irace@mastodon.social
irace@mastodon.social

@manton If you use HTTP cookies instead of JavaScript, they’ll last a lot longer. Doesn’t help you with localStorage though.

|
Embed
Progress spinner
sod
sod

@manton Yeah, the storage eviction in Safari is frustrating. You might have some luck with the Storage API and navigator.storage.persist(). It's not guaranteed, though.

Origin might be excluded from eviction if it has active page at the time of eviction, or its storage is in persistent mode. By default, all origins use a best-effort mode, which means their persistence is not guaranteed and their data can be evicted. An origin can request persistent mode using the Storage API introduced below.

From Updates to Storage Policy on the WebKit blog.

|
Embed
Progress spinner
adamprocter
adamprocter

@manton moving my own app nodenogg.in to be totally decentralised p2p using local storage so this will be a royal pain

|
Embed
Progress spinner
In reply to
clonezone
clonezone

@manton You don't work with enough "enterprise" authentication… 7 days with inactivity is luxurious. Some things I deal with use 6 hours even with activity.

|
Embed
Progress spinner
dave@puz.fun
dave@puz.fun

@manton wow, that’s not much time at all! A project I contribute to uses local storage to save progress while solving puzzles, and I personally sometimes take a week or two to get back to a difficult puzzle in progress. That’s a huge bummer for Safari users.

|
Embed
Progress spinner
rom
rom

@clonezone 6 hours? Wow! And I thought that 24 hours is extreme already.

|
Embed
Progress spinner
rom
rom

@manton No settings to override it?

|
Embed
Progress spinner
rom
rom

@manton Incidentally, how does the cookie-killing new Chrome handle this?

|
Embed
Progress spinner
cdevroe
cdevroe

@manton Where is this policy?

|
Embed
Progress spinner
manton
manton

@rom I'm not familiar with the Chrome changes. Quick search seems to indicate that cookies last about a year.

|
Embed
Progress spinner
rom
rom

@clonezone 6 hours? Wow! And I thought that 24 hours is extreme already.

|
Embed
Progress spinner
rom
rom

@manton Incidentally, how does the cookie-killing new Chrome handle this?

|
Embed
Progress spinner
rom
rom

@manton but aren't they killing cookies?

|
Embed
Progress spinner