this post was submitted on 01 Oct 2021
0 points (NaN% liked)

Programmer Humor

32716 readers
609 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 4 comments
sorted by: hot top controversial new old
[–] NewDark@lemmy.world 0 points 1 year ago (1 children)

localStorage is a thing, don't need cookies for browser state

[–] DmMacniel@feddit.de 0 points 1 year ago (1 children)

Sure it is a thing but JavaScript on that domain can access it either injected or provided by the site. This is quite risky. Cookies can be http only so that client code cant access it.

[–] Zzombiee2361@lemmy.world 0 points 1 year ago (1 children)

How is storing hideCookieBanner: false on local storage risky?

[–] DmMacniel@feddit.de 0 points 1 year ago

What would the benefit of storing that in local storage?