Is this really the version you are looking for? Kentico Xperience 8 Documentation is no longer updated. Use the switcher in the header to choose your product version.
The Cookie law is in effect in some European countries, which requires websites to ask visitors for consent to use cookies. You can find more information at http://www.ico.gov.uk/ (opens in a new tab). Kentico provides functionality that helps you comply with the law.
Kentico cookies are separated into several cookie levels according to their importance in the system. There are three main levels designed to comply with the law regulations.
To display a text message and buttons asking visitors for consent to store cookies in their browsers, use one of the following web parts:
Both web parts are implemented by the ~/CMSWebParts/General/CookieLaw.ascx control. The "simple" variant is only a preconfigured version of the same web part. By default, the web parts are not styled, so you need to update your site's CSS stylesheet to get the required look and feel.
This web part offers three cookie levels to choose from:
On each level, actions to switch to the remaining levels are offered. You may customize the text messages, available actions as well as button texts.
The Default user cookie level property sets the enforced cookie level before the user makes a choice.
The Compare current cookie level to property is a basis for other settings in the web part. It defines a level to which the user's current cookie level is compared. Three states with their own settings are defined depending on the selected level:
This should give you enough options to configure the web part.
The Preview cookie level property allows you to simulate the user cookie level in Edit and Preview mode.
This is a preconfigured version of the previous web part. The preset behavior is: Disable cookies by default, request allowing, and once allowed, hide the web part.
Live site
Once you place the web part into your website, you might not see the message after switching to the live site. The reason is that all users who access the Kentico administration interface have cookies enabled by default and the cookies are already stored in the browser you are working with. To check whether your configuration of the cookie web part is correct, log out of the administration interface and clear all cookies in your browser. Or try the website in a different browser or computer.