Cookie notice and consent - is that at all lawful?

This question seems justified, especially since literature and case law are disagreeing here. The discussion will also be inspired by self-proclaimed "privacy advocates". As a result, there is uncertainty - even in many courts - about what a cookie notice and its consent should look like.