Let's be clear here: The law is NOT to blame for cookie banners.

The blame lies with companies that would rather inconvenience you with a banner than respect your privacy by not collecting (and selling) your data..

https://www.politico.eu/article/europe-cookie-law-messed-up-the-internet-brussels-sets-out-to-fix-it/?

Europe’s cookie law messed up the internet. Brussels wants to fix it.

The European Commission wants to take a bite out of privacy rules that force websites to run cookie banners.

POLITICO
@vmbrasseur why do I need a stupid cookie banner to stay logged in on a website? It’s always about the “selling your data” straw man for you people. Admit it. That was a bad law that made the internet a little worse for everyone.

@Beirutspring @vmbrasseur You don't need a banner or confirmation for the kind of cookie you described. If you're seeing a cookie banner, it's because they actually are collecting data to profit from. That's what the banner means.

When the data is only used for the functionality of the site, then no banner is required.