If you don't use third-party cookies or they are blocked in browser's settings. And if your cookies have SameSite=Strict
attribute. How their behavior differ from localStorage
? If your site use localStorage
it still can save some user_id
in there and identify the user. Actually it even can send this user_id
to a third-party!
So what's the difference?
Why these nagging messages on every other site about using cookies? But not about using any other kind of local storage?
And yes, I understand that cookies are sent with every request while with localStorage
you need intentionally send the locally saved info. But still, nobody warns that they can identify a user and even leak this info, just that they use cookies. Isn't this just an illusion of privacy and everyone will be better off without this illusion?