Cookie Accept button on webpage - gdpr

Open to all! Ask other shopowners for help.
Post Reply
loop
Contributor
Posts: 253
Joined: Thu Mar 25, 2021 12:26 pm
Phoenix Version:
Has thanked: 7 times
Been thanked: 3 times

Cookie Accept button on webpage - gdpr

Post 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Cookie Accept button on webpage - gdpr

Post 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
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
loop
Contributor
Posts: 253
Joined: Thu Mar 25, 2021 12:26 pm
Phoenix Version:
Has thanked: 7 times
Been thanked: 3 times

Re: Cookie Accept button on webpage - gdpr

Post 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
User avatar
Kofod95
Senior Contributor
Posts: 748
Joined: Sat Feb 06, 2021 7:38 pm
Phoenix Version: 1.0.8.20
Has thanked: 99 times
Been thanked: 179 times

Re: Cookie Accept button on webpage - gdpr

Post 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
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply