Now that PHP 7 is being adopted by more and more web applications in production environments, dealing with legacy code
What are cookies?
Cookies are small files which are stored on a user's computer. They are designed to hold a modest amount of data specific to a particular client and website, and can be accessed either by the web server or the client computer. This allows the server to deliver a page tailored to a particular user, or the page itself can contain some script which is aware of the data in the cookie and so is able to carry information from one visit to the website (or related site) to the next.
Why are cookies used?
Cookies are a convenient way to carry information from one session on a website to another, or between sessions on related websites, without having to burden a server machine with massive amounts of data storage. Storing the data on the server without using cookies would also be problematic because it would be difficult to retrieve a particular user's information without requiring a login on each visit to the website.
If there is a large amount of information to store, then a cookie can simply be used as a means to identify a given user so that further related information can be looked up on a server-side database. For example the first time a user visits a site they may choose a username which is stored in the cookie, and then provide data such as password, name, address, preferred font size, page layout, etc. - this information would all be stored on the database using the username as a key. Subsequently when the site is revisited the server will read the cookie to find the username, and then retrieve all the user's information from the database without it having to be re-entered.
Welke soorten cookies zijn er?
There are different kinds of cookies. The main categories are: strictly necessary cookies, third party cookies and additional cookies.
Accepting or rejecting cookies
On your first visit to my website you will be asked to accept or reject cookies.
The acceptance or rejection can be set per category of cookies, strictly necessary cookies, third party cookies and additional cookies. No cookies are placed before permission has been obtained from the visitor. Failure to accept cookies may result in the website or parts of the website not functioning properly. A visitor can adjust his preferences at any time via the link provided for this.