2 ms·
The distinction, and this is an important one, is that cookies have a hard cap of 4Kb of data per domain, making them nigh-useless for that purpose. All they ar
by Chabsff 3y ago
The distinction, and this is an important one, is that cookies have a hard cap of 4Kb of data per domain, making them nigh-useless for that purpose. All they are good for is recognizing a given user server-side across multiple page loads and storage of a few handful of user preferences. Cookies also get sent with every request, so using them as storage is just asking to balloon your bandwidth costs.
On top of that, using localStorage for storing large amounts of data rarely involves anything like a cookie warning because it's 100% client side unless manually sent back to the server. And even then, if you anonymize the data (i.e. you don't care who's storage you are using), you still don't technically need any warning.
All this to say: There is basically no relationship whatsoever between pervasive cookie warnings and the usage concerns you are voicing. Both are valid concerns, both are important stakes, but they have nothing to do with one-another.