简体   繁体   中英

How to check cookies consent status if no retrieval is allowed by EU law?

I read it from https://www.cookielaw.org/the-cookie-law/ that in EU, you must show cookies consent before storing and retrieving any cookies.

Then how can I check if the user previously agreed with the consent? Normally I would set a cookie like

alreadyConsented

or something, but it would violate the rule of no retrieval before consent.

I do not want to show the cookies consent every time the same user visited the site. And my page is entirely client-sided.

Edit : Update the link and quote

The Cookie Law is a piece of privacy legislation that requires websites to get consent from visitors to store or retrieve any information on a computer, smartphone or tablet.

Show the cookie consent box once if user allows (clicks on allow), set the cookies.

Also set a cookie like consent-allowed = true .

Next time when the page is loaded check for the consent-allowed cookie, if it is set that means that the user has allowed else show the consent.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM