MobileDetectBundle icon indicating copy to clipboard operation
MobileDetectBundle copied to clipboard

Cookie only set when another cookie has required value

Open kklecho opened this issue 2 years ago • 1 comments

Rationale: With the cookie law, the cookie should not be set by default but only after the user agrees cookies.

Suggested solution:

  1. Add option called cookies_accepted_cookie_name # what is the cookie name that stores user consent or denial
  2. Add option called cookies_accepted_cookie_value # what value the cookie has to hold for the mobile detect to be allowed to set it's own cookies
  3. Change code logic to only set / check the device view cookie when cookie configured in 1. has the value configured in 2.

kklecho avatar Aug 07 '23 07:08 kklecho

Hi, thank you for your request! Would you like to create a pull request that handles this functionality?

Thank you so much!

tattali avatar Dec 23 '24 15:12 tattali