Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Firefox (4) allows me to Accept cookies from sites (with Exceptions to Allow or Deny for some). However, as far as I can see, it ain't possible to use the option Keep until: I close Firefox and still keep some cookies when I close.

Is it somehow possible to keep only a whitelist of cookies and clear all the rest on close?

Does this even make sense, or should I just make a whitelist of cookies and keep those regardless of closing Firefox?

share|improve this question
It does make sense, I do not know how to do it. – soandos Jun 2 '11 at 16:34
Ah, I found the duplicate to my question: How do I tell Firefox to only keep persistent cookies from sites I want? – Martin Jun 2 '11 at 20:09
up vote 3 down vote accepted

If the master setting for your cookies is "until I close Firefox" I think that sites you whitelist will get to keep cookies after you close the browser.

share|improve this answer
This is in fact correct. I have just tried it with my FF 4.0.1. (Note that Clear History when Firefox closes is not checked, only Until I close for cookies.) – Martin Jun 2 '11 at 19:05

This is a workaround that may generate some errors. Set the permissions for the folders that the sites you want to keep to removing the delete permission for your user. This way, firefox will not be able to delete them (ever). This might cause problems.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .