Hello,
Cookie Control by default will delete all cookies when it runs after a page load, apart from those that you have marked in your configuration as "necessary", using the
necessaryCookies property, or the optional ones to which the user has consented. So these cookies will be the ones that will be "protected" from getting deleted on every page load.
If you don't populate the cookies array inside an optionalCookies category, Cookie Control has no way to know which cookies it shouldn't delete when consent is given. For example, imagine you have a "analytics" cookie category but you have not specified any cookie names for it and the user consents to analytics cookies. When the user consents, your analytics scripts will run and set a cookie to remember the user on subsequent visits.
So when the user visits another page of your website, Cookie Control will see this category is accepted, but won't know which cookies it shouldn't delete, so it will also delete the cookie that your analytics plugins set before. Your analytics plugins will then run again and set new cookies, so the same user will appear as a new one when you review your website's stats. Generally speaking deleting cookies like this on every page load can lead to various unexpected problems.
I hope this clarifies things.
Kind regards,
Gerasimos