搜尋 Mozilla 技術支援網站

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

了解更多

Why the deleted cookies from document.cookie continue to be displayed in the Storage Inspector -> Cookies? How can I delete cookies from there using js?

more options

Hi, I'm trying to delete cookies from document.cookie object and expect to see the same list of cookies under Storage Inspector -> Cookies tab in Dev Tool (F12). But the cookies deleted from document.cookie continue to be displayed in the Storage Inspector -> Cookies tab. Please advise if there is any way to delete cookies from Storage Inspector -> Cookies tab using js? How does tab decide what cookie to display and where does it take them from (document.cookie??) ? Thanks in advance!

Hi, I'm trying to delete cookies from document.cookie object and expect to see the same list of cookies under Storage Inspector -> Cookies tab in Dev Tool (F12). But the cookies deleted from document.cookie continue to be displayed in the Storage Inspector -> Cookies tab. Please advise if there is any way to delete cookies from Storage Inspector -> Cookies tab using js? How does tab decide what cookie to display and where does it take them from (document.cookie??) ? Thanks in advance!

所有回覆 (2)

more options

Did you try to reload the Storage Inspector page to update its content?

more options

cor-el said

Did you try to reload the Storage Inspector page to update its content?

I've also noticed that the Storage Inspector panel doesn't always reflect updates automatically. In addition to using the refresh button, you can switch between storage categories to try to update the display.