There is no cookie legislation. There's data protection and privacy legislation. Cookies and banners are just how industry is dealing with it because they're dragged kicking and screaming towards what's actually slowly being enforced.
If you really believe it's a cookie legislation from tech-illiterate, I recommend reading the document. You're in for a surprise. (in a good way)
If you really believe it's a cookie legislation from tech-illiterate, I recommend reading the document. You're in for a surprise. (in a good way)