MobileDetectBundle
MobileDetectBundle copied to clipboard
Cookie only set when another cookie has required value
Rationale: With the cookie law, the cookie should not be set by default but only after the user agrees cookies.
Suggested solution:
- Add option called
cookies_accepted_cookie_name# what is the cookie name that stores user consent or denial - 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 - Change code logic to only set / check the device view cookie when cookie configured in 1. has the value configured in 2.
Hi, thank you for your request! Would you like to create a pull request that handles this functionality?
Thank you so much!