X
Thinta lapha ukuze uye kuveshini yamakhalekhukhwini kusayithi.

Isithangami Sabeseki

Cookie cannot be deleted by API

Kuphostiwe

I have a cookie that is set by https://www.kinguin.net/ that cannot be deleted via the API. I discovered it while using the Cookie AutoDelete add-on. It would continually try to delete the cookie but was never successful.

I posted a bug report for the add-on and it was discovered to be a problem with the way the cookie was being set (not capitalizing the first letter in the "Expires" directive).

You can see the report here: https://github.com/Cookie-AutoDelete/Cookie-AutoDelete/issues/538

I know that the problem is that the website is setting the cookie improperly, but should it be possible for a website to create a cookie that cannot b deleted by the Firefox API?

I have a cookie that is set by https://www.kinguin.net/ that cannot be deleted via the API. I discovered it while using the Cookie AutoDelete add-on. It would continually try to delete the cookie but was never successful. I posted a bug report for the add-on and it was discovered to be a problem with the way the cookie was being set (not capitalizing the first letter in the "Expires" directive). You can see the report here: https://github.com/Cookie-AutoDelete/Cookie-AutoDelete/issues/538 I know that the problem is that the website is setting the cookie improperly, but should it be possible for a website to create a cookie that cannot b deleted by the Firefox API?
Isicaphuno

Eminye Imininingwane Yohlelo

Fakela amapulagi

  • Shockwave Flash 32.0 r0

Isisebenziso

  • I-ejenti Engumsebenzisi: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0

Eminye Imininingwane

WestEnd
  • Top 25 Contributor
61 izisombululo 5308 izimpendulo
Kuphostiwe

If your using their site then you agreed to their TOS and cookie and tracking usage. You should contact their site support about the issue your having.

If your using their site then you agreed to their TOS and cookie and tracking usage. You should contact their site support about the issue your having.

Okulungisiwe ngu WestEnd

Ingabe lokhu kube usizo kuwena?
Isicaphuno

Umnikazi wombuzo

My problem is not with the site setting the cookie improperly, it is with the browser allowing the cookie to be set improperly or not enforcing proper syntax (shouldn't it just ignore any directive that has improper syntax?)

My problem is not with the site setting the cookie improperly, it is with the browser allowing the cookie to be set improperly or not enforcing proper syntax (shouldn't it just ignore any directive that has improper syntax?)
Ingabe lokhu kube usizo kuwena?
Isicaphuno
cor-el
  • Top 10 Contributor
  • Moderator
17278 izisombululo 156199 izimpendulo
Kuphostiwe

This looks more like a case where a semicolon has been omitted between path=/ and expires=.

remove: function (e) {
 if (!l.canUseDOM) return null;
  document.cookie = ''.concat(e, '=; path=/ expires=Thu, 01 Jan 1970 00:00:01 GMT;')
}

Should be:

remove: function (e) {
 if (!l.canUseDOM) return null;
  document.cookie = ''.concat(e, '=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;')
}

Document.cookies is a list of key=value pairs separated by semicolons.

You can contact the website about this error.

This looks more like a case where a semicolon has been omitted between path=/ and expires=. *https://www.kinguin.net/new_hp/app.7a9ed399725085ae39f9.js <pre><nowiki>remove: function (e) { if (!l.canUseDOM) return null; document.cookie = ''.concat(e, '=; path=/ expires=Thu, 01 Jan 1970 00:00:01 GMT;') }</nowiki></pre> Should be: <pre><nowiki>remove: function (e) { if (!l.canUseDOM) return null; document.cookie = ''.concat(e, '=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;') }</nowiki></pre> Document.cookies is a list of key=value pairs separated by semicolons. *https://developer.mozilla.org/en-US/docs/Web/API/document/cookie You can contact the website about this error.

Okulungisiwe ngu cor-el

Ingabe lokhu kube usizo kuwena?
Isicaphuno
cor-el
  • Top 10 Contributor
  • Moderator
17278 izisombululo 156199 izimpendulo
Kuphostiwe

Note that you can use the Storage Inspector to remove these cookies.

Note that you can use the Storage Inspector to remove these cookies. *https://developer.mozilla.org/en-US/Tools/Storage_Inspector
Ingabe lokhu kube usizo kuwena?
Isicaphuno

Umnikazi wombuzo

Thanks for all the responses!

I am able to delete the cookie using Firefox's Options - Privacy & Security - Manage Data, that is not my problem.

It appears that you cannot delete the cookie via the Firefox API.

Is this not a problem?

So far, the answers here have either been how to fix the website so that it sets the cookie properly, or how to delete the cookie in another manner.

Neither of these was what my concern is.

My concern is being able to delete this cookie using the Firefox API. Is it possible? If not, is it a bug in Firefox? Should a website be able to set a cookie that cannot be deleted via the Firefox API? Should a bug report be made to fix this in Firefox?

Thanks.

Thanks for all the responses! I am able to delete the cookie using Firefox's Options - Privacy & Security - Manage Data, that is not my problem. It appears that you cannot delete the cookie via the Firefox API. Is this not a problem? So far, the answers here have either been how to fix the website so that it sets the cookie properly, or how to delete the cookie in another manner. Neither of these was what my concern is. My concern is being able to delete this cookie using the Firefox API. Is it possible? If not, is it a bug in Firefox? Should a website be able to set a cookie that cannot be deleted via the Firefox API? Should a bug report be made to fix this in Firefox? Thanks.
Ingabe lokhu kube usizo kuwena?
Isicaphuno
cor-el
  • Top 10 Contributor
  • Moderator
17278 izisombululo 156199 izimpendulo
Kuphostiwe

You mean that an extension isn't able to remove this specific cookie? If that is confirmed by its developer then he should file a bug report to get this fixed. I don't know the specifics of how this cookie API works.

You mean that an extension isn't able to remove this specific cookie? If that is confirmed by its developer then he should file a bug report to get this fixed. I don't know the specifics of how this cookie API works.
Ingabe lokhu kube usizo kuwena?
Isicaphuno
Buza umbuzo

Kufanele ulogele ukungena ku-akhawunti yakho ukuze uphendule amaphosti. Uyacelwauqale umbuzo omusha, uma ungekabi nayo i-akhawunti namanje.