Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

How to remove only cookies for a specific domain every time i close the browser?

more options

I would like to delete the cookies for 2 domains evry time i close the browser while retaining all other cookies until they expire.

To accomplish this i opened the cookie exceptions settings and set "Allow for Session" under cookie exceptions, but it seems not working the way i expect: if i close the browser and then reopen it if, i find the cookies for the 2 domains are still there.

Is there another way to have this kind of setting.

I would like to delete the cookies for 2 domains evry time i close the browser while retaining all other cookies until they expire. To accomplish this i opened the cookie exceptions settings and set "Allow for Session" under cookie exceptions, but it seems not working the way i expect: if i close the browser and then reopen it if, i find the cookies for the 2 domains are still there. Is there another way to have this kind of setting.

Tất cả các câu trả lời (7)

more options

You can use the Storage Inspector to remove individual cookies for a specific website, via the right-click context menu. To open the Storage Inspector, go to the menu > Web Developer submenu or press Shift + F9 on the keyboard.

more options

HI, please Copy/Paste about:preferences#privacy to the Address Bar and Enter Move down the Page to Cookies and Site Date --> Exceptions and enter the sites as directions state at the top, allow for session.

more options

@Pkshadow This is exactly what i made, but it seems not working. The coockies in marked as allowed for session are not deleted.

more options

Can you try Exit rather than shutdown with the X

more options

Hi ajtim, one situation in which session cookies might reappear is if you restore your previous session windows and tabs. For the open windows and tabs, and up to 3 closed windows and up to 10 closed tabs per window, Firefox will retain the session cookies and some form data in the session history file. This allows you to get back to where you were after a crash. You can try disabling that to see whether it is the source of the cookies.

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste sess and pause while the list is filtered

(3) Double-click the browser.sessionstore.privacy_level preference to display a dialog where you can enter the desired value from the following list, then click OK

  • 0 = save cookies/data for HTTP and HTTPS sites (default)
  • 1 = save cookies/data for HTTP sites, but not HTTPS sites
  • 2 = don't save cookies/data for any site
more options

I made some trials resetting everything from history an setting the exceptions before and after visiting a page for which i want the cookies being removed. I found that:

  • setting allow for session 'in the exceptions before visiting the page for the first time, works as expected and cookies are removed on browser close.
  • setting allow for session in the exceptions after visiting the page does not work is i expect, so the cookies for that page are not removed closing the browser.

Is this a bug or the expecting behaviour.

more options

ajtim said

I made some trials resetting everything from history an setting the exceptions before and after visiting a page for which i want the cookies being removed. I found that:
  • setting allow for session 'in the exceptions before visiting the page for the first time, works as expected and cookies are removed on browser close.
  • setting allow for session in the exceptions after visiting the page does not work is i expect, so the cookies for that page are not removed closing the browser.
Is this a bug or the expecting behaviour.

If Firefox has already stored persistent cookies for the site, you need to remove them yourself. The permission change only affects new cookies the site sets after the change.