Cookies are not deleted if Decline button is clicked

Cookies are not deleted if Decline button is clicked was created by serguei_kp

Posted 2 years 10 months ago #60973
There is still one thing I can not understand how it works.

I've activated block iframes option.
I have three cookies of Google Analytics key(name) _gid and key(name) _ga, _gat
If I click in Cookies options on "Decline" one of them or "Decline all",
I can still see those cookies in the Application > Storage > Cookies of my Chrome browser after page reloading,
should they be deleted ?
There only the value of cookiesck changes to yes or no if I click "Decline all" or "Accept all" but cookies _ga, _gat and _gid are still there.

Thank you!

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Cookies are not deleted if Decline button is clicked

Posted 2 years 10 months ago #60974
Hi
Please give me the url of your page so that I can check
according to my tests, the cookies are deleted after refresh but sometimes some browser are still showing them in the console
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by serguei_kp on topic Cookies are not deleted if Decline button is clicked

Posted 2 years 10 months ago #60976
Hello, you can check it here: aramis-paris.com/fr

Thank you!

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Cookies are not deleted if Decline button is clicked

Posted 2 years 10 months ago #61031
Hi
I can not reproduce the issue in my test website, but I see that you have a JS error in your page
that may interfer with the cookies script

Uncaught SyntaxError: unexpected token: ':' fr:42:11

please check your web console and fix the error, then tell me if it works
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Cookies are not deleted if Decline button is clicked

Posted 2 years 10 months ago #61056
Hi
I have checked that on a website where I was able to reproduce the same as you
if you don't agree, the cookie is not stored
if you agree, the cookie is stored
if you change your mind and you want to refuse the cookie later, its value will be updated so that it expires (this is the way to remove a cookie). BUT, in the browser, it can still be shown. I have noticed an information on Firefox for example :

The cookie XXX has been rejected because it has already expired

This means that the cookie can not be stored anymore

hope it helps
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by serguei_kp on topic Cookies are not deleted if Decline button is clicked

Posted 2 years 10 months ago #61060
Thank you Cedric, I will try to fix the js error.

Please Log in or Create an account to join the conversation.

Time to create page: 1.157 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1362 guests and no members online