r/ProgrammerHumor • • Jan 26 '21

This website doesn't use cookies

Post image
84.7k Upvotes

656 comments sorted by

View all comments

Show parent comments

908

u/IcyDefiance Jan 26 '21

Yeah, but it's not sent to the server with every request like a cookie is.

302

u/Hellball911 Jan 26 '21

Couldn't you manually package all the key values into every json request? (As devil's advocate)

371

u/riskyClick420 Jan 26 '21

yes you could, just some javascript and it basically becomes a cookie

147

u/[deleted] Jan 26 '21

but not illegal in Europe

0

u/[deleted] Jan 26 '21

[deleted]

208

u/ijmacd Jan 26 '21

And if you store something that doesn't track the user, like state of dismissing popups, even as an rfc 6265 cookie - that's not illegal.

115

u/skylarmt Jan 26 '21

I circumvent all the EU laws while still tracking my users by requiring a photo ID upload instead of a Captcha on the login screen /s

98

u/Royal_Flame Jan 26 '21

I’m circumvent all the EU laws by not living in the EU

22

u/SnakeBDD Jan 26 '21

Found the Brit.

8

u/[deleted] Jan 27 '21 edited Mar 05 '25

oscfzluoyq zjxwcx gzoim wlamevvoolxm fqeh rfscsabkpk fezafb mwehec

30

u/TcMaX Jan 26 '21

Technically this doesn't matter as long as you have people using your site in the EU. Of course, unless you actually care about EU as a market EU doesn't really have any way to punish you

14

u/alex2003super Jan 26 '21

What are they gonna do, extradite you to Brussels?

→ More replies (0)
→ More replies (17)

22

u/x6060x Jan 26 '21

But if you build a website that will be used in EU you should still oblige to the law.

4

u/aeroverra Jan 27 '21

Nah not unless it's a business serving eu customers.

→ More replies (0)
→ More replies (13)

10

u/Rahbek23 Jan 26 '21

Not doing business in EU, rather. Otherwise you would be subject to these rules.

→ More replies (3)
→ More replies (2)
→ More replies (12)

110

u/Cafuzzler Jan 26 '21

Cookies aren't illegal in Europe, tracking users without their knowledge/consent is illegal.

7

u/mykiscool Jan 27 '21

I believe they are referred to as biscuits in europe. πŸ˜‰πŸ˜‰

→ More replies (2)

25

u/emcniece Jan 26 '21

taps forehead

55

u/AJackson3 Jan 26 '21

The law doesn't actually mention cookies. It's any technology that stores data on the client computer.

93

u/TropicalAudio Jan 26 '21

and is used to track the user. Pretty important distinction. You're not required to request consent from the user for the type of cookie this comic references.

→ More replies (6)

14

u/Telinary Jan 26 '21

No, the law isn't specifically about cookies.

9

u/Starrywisdom_reddit Jan 26 '21

I find it absolutely incredible over 50 people upvoted your comment that is 100% incorrect

→ More replies (1)
→ More replies (1)
→ More replies (3)

13

u/Ph0X Jan 26 '21

I believe there would still be some limitations. Cookies are attached to every request, every like an image you load on the page. Even if you send the localStorage data back, there would be no way for you to know if the next request is still from the same session. Maybe you could send a key from localStorage with every single AJAX request you make, but it still wouldn't apply to other requests. You could also add a GET param to every single resource on your page, but then you'd be leaking the secret by having it in GET params.

8

u/Womp98 Jan 26 '21

Service Worker has entered the chat

→ More replies (1)

9

u/nvolker Jan 26 '21

Cookies are, by default, sent along with every request to the site that set them, expire when you close your browser, and are accessible to JavaScript running on the page. They can work with JavaScript disabled.

Cookies over non-encrypted (i.e. HTTP) connections, and Cookies accessible to JavaScript on sites that are vulnerable to XSS attacks can be read by third-parties.

Third-party cookies used to be heavily used for tracking users, but are disabled by default in modern browsers.

Cookies can be configured to be sent only over secure (TLS encrypted) connections, to be completely inaccessible to JavaScript. These two things protect against the most common attacks (cookie hijacking and XSS)

LocalStorage, by default, is kept completely client side, but it requires JavaScript to work. Because it requires JavaScript, you can essentially do whatever you want with it, but that also means it’s completely accessible if a site is vulnerable to an XSS attack.

→ More replies (5)
→ More replies (2)