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

Different cookie name when saving all or saving selection #4

Closed
ivarela77 opened this issue Mar 8, 2023 · 2 comments
Closed

Different cookie name when saving all or saving selection #4

ivarela77 opened this issue Mar 8, 2023 · 2 comments

Comments

@ivarela77
Copy link

Hello and sorry for my English from the google translator !!
When you save the cookie settings, cookies are saved with different names depending on whether you use the accept selection or accept all button.
If you accept the selection, it stores the cookie with the name "cookie_consent_targeting" and if you accept all, it stores the cookie with the name "cookie_consent_cookie_targeting".
This implies that when checking the cookie you have to check the two names
@if(isset($_COOKIE[config('cookies_consent.cookie_prefix') . 'cookies_consent_targeting']) || isset($_COOKIE[config('cookies_consent.cookie_prefix') . 'cookies_consent_cookie_targeting'])
and that in the cookie policy you have to specify too many cookies.
I don't know if it's a small error or if it's programmed like this for some reason, but I hope you can help me.
Thank you very much and greetings

@PavlosIsaris
Copy link
Contributor

PavlosIsaris commented Mar 16, 2023

Hello @ivarela77 ! Thanks for opening this issue.
Indeed, the bug you referred to exists. We are addressing this issue in today's release (v1.0.1) (commit link). Can you please update the plugin version and let me know if it is fixed for you?

@ivarela77
Copy link
Author

ivarela77 commented Mar 20, 2023 via email

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

2 participants