Page 1 of 1

Cookie Accept button on webpage - gdpr

Posted: Fri Aug 25, 2023 2:40 pm
by loop
Hi All
i'm wondering if there exist a module where customer needs to click "yes i accept cookies or enable all for cookies that the website is gdpr conform. i see there exist 1000 of monthly services which can be paid but i'm wondering if that is needed for a "accept" button on the webpage
thank you for your ideas / solutions which you use...
loop

Re: Cookie Accept button on webpage - gdpr

Posted: Sat Aug 26, 2023 9:42 am
by Kofod95
Probably a dumb question, but do you need it?
It's not necessary, if the cookies are purely functional, which is true for the core cookies.

However, if you use something that requires you to let people accept/reject, my approach would probably be to use either the $_SESSION or a cookie to store their selection. This would mean a hook that reads whether a "cookieAccept" cookie exists or a $_SESSION['cookie_accept'] is set. If it's not, then show some buttons that sets a "true" or "false" to either the cookie or the $_SESSION.
The cookies that you need permission to would then have a check if either is set, and if the value is true, before it adds the cookies.
Using a cookie would allow to save the units selection for a longer time than the $_SESSION.

//Daniel

Re: Cookie Accept button on webpage - gdpr

Posted: Mon Aug 28, 2023 1:47 pm
by loop
I don't need it :) but i'm not sure about the LAW in switzerland...in EU you probably need to do the cookie banner...but in switzerland probably not

Re: Cookie Accept button on webpage - gdpr

Posted: Mon Aug 28, 2023 2:14 pm
by Kofod95
I'm from Denmark, which is in the EU, and we don't need it, unless we add "tracking" cookies or similar (Google Analytics probably counts as tracking) :)

//Daniel