SimpleCookieLawConsent is not working

Ashutosh Pandey asked on May 13, 2020 13:55

We are using Kentico 10 for our website.

We want to show a simple cookie message to user that he will accept. (Allow all cookies)

For this, I added SimpleCookieLawConsent with settings attached in the image.

The message is shown on the buttom but nothing happens when I click Allow button.

I should not display next time and remember what I selected.

What am I missing here?

https://ibb.co/0t4LxFg

https://ibb.co/1ZzH777

Correct Answer

Dmitry Bastron answered on May 13, 2020 14:49

Hi Ashuhtosh,

For this web part to work correctly it requires at least 2 cookie levels and it is supposed to work like this:

  • Set default cookie level lower than All (system or visitor for example)
  • Then configure web part accordingly: for exact level behavior uncheck "if level matches, display"

The logic should be as following:

  • User opens the website with system cookies by default
  • User sees this banner
  • User clicks "allow all cookies"
  • This choice is remembered in CMSCookieLevel cookie
  • The web part should disappear

Otherwise, with your logic explained, it is the correct behavior, because the web part is set to always display. And effectively your "allow all cookies" button does nothing, because all cookies are already enabled by default.

2 votesVote for this answer Unmark Correct answer

Recent Answers


Ashutosh Pandey answered on May 13, 2020 14:59

Thanks a lot Dmitry, you saved me lot of time.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.