Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookie only set when another cookie has required value #20

Open
kklecho opened this issue Aug 7, 2023 · 0 comments
Open

Cookie only set when another cookie has required value #20

kklecho opened this issue Aug 7, 2023 · 0 comments

Comments

@kklecho
Copy link

kklecho commented Aug 7, 2023

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant