為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Duplicate cookie being formed for shopping basket

  • 2 回覆
  • 1 有這個問題
  • 3 次檢視
  • 最近回覆由 retorth

more options

Good Afternoon,

Firefox version: 27.0.1 OS: Windows 7

I was hoping I could get some information and possibly some help on rectifying this issue with duplicate cookes on firefox that I've been having.

I discovered that I was having two identical cookies being created for my shopping basket on the site which meant that, while I was adding products to my basket, it would not show up on the basket page as the cookie information being retrieved was stored on the duplicate cookie instead. Analysing the data on the cookies was not possible either as it all appears garbled. There is an apache server that redirects users from site.co.uk to www.site.co.uk and does not create cookies in that instance so this should not be a problem.

Is there a fix I can apply for this? Is this a firefox issue perhaps?

Good Afternoon, Firefox version: 27.0.1 OS: Windows 7 I was hoping I could get some information and possibly some help on rectifying this issue with duplicate cookes on firefox that I've been having. I discovered that I was having two identical cookies being created for my shopping basket on the site which meant that, while I was adding products to my basket, it would not show up on the basket page as the cookie information being retrieved was stored on the duplicate cookie instead. Analysing the data on the cookies was not possible either as it all appears garbled. There is an apache server that redirects users from site.co.uk to www.site.co.uk and does not create cookies in that instance so this should not be a problem. Is there a fix I can apply for this? Is this a firefox issue perhaps?

所有回覆 (2)

more options

Do these cookies have a different path?

Are that domain cookies (i.e. start with a dot)?


You can inspect and manage the cookies for the domain in the currently selected tab:

  • Click the "Site Identity Button" (globe/padlock) on the location bar
  • Click "More Information" to open "Tools > Page Info" with the Security tab selected
  • Click "View Cookies" to view the cookies for the domain in the currently selected tab
more options

No, they are exactly identical and are not domain cookies. They contain data that reflects the basket contents.

e.g. BasketID2=a066ec59d2b54a69b9523dd6&Count=2

As mentioned earlier, one cookie would be updated when you add or remove products but when checking out, it is the other cookie that gets read instead.