According to the Directive, all websites had to give a cookie alert to their users about the fact that they set cookies on the user's browser. The purpose of cookie consent banners therefore was to alert the users of the website about the cookies and get consent for setting them.