Cookies are not deleted if Decline button is clicked

More
3 years 5 months ago #60973 by serguei_kp
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.

More
3 years 5 months ago #60974 by ced1870
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

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

More
3 years 5 months ago #60976 by serguei_kp
Hello, you can check it here: aramis-paris.com/fr

Thank you!

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

More
3 years 5 months ago #61031 by ced1870
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

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

More
3 years 5 months ago #61056 by ced1870
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

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

More
3 years 5 months ago #61060 by serguei_kp
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: 0.233 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 751 guests and one member online