Saving cookies allows websites to remember your preferences. You may be wondering why lately more and more websites are warning you that they store cookies, even requiring you to agree by clicking on their link, usually titled "I Got It", to remove the annoying pop-up message. The window also allows you to see relevant information about all of this. The answer lies in a new law passed under the European Union's e-Privacy Directive.
Specifically, the law states:
a person cannot store or access stored information on the terminal latest technology equipment subscriber or user, unless the requirements of paragraph (2) are met.
(2) The requirements are that the subscriber or user of that terminal:
(a) has clear and detailed information about the purposes of storing or accessing such information, and
(b) has given his / her consent.
Regulation 6 of the Privacy and Electronic Communications Regulations 2003 (PECR)
The law essentially says that when people visit a website they store cookies in their browser, need to know about this storage. You should also be aware of the meaning of storing these coaches and they should agree in this.
There are exceptions to the law. When storing a cokkie is absolutely necessary, for example without saving the cokkies you can not use a web page service, the website does not have to ask for your consent to store a cokkie. It is assumed that you accept it by using the site or its service. For example; Enter Amazon without logging in and add different items to your shopping cart. Then leave the page and when you come back the next day and log in you will see that in your cart there are still those items. The products you have selected are stored in the boxes.
But there are also good news that cookies on the site and third-party advertisers are not exempt from law and will require user approval to be stored in their browser.
You can read the comprehensive directive issued by the International Bureau of the Commissioner from here.