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

Is there a way to tell Firefox to only keep persistent cookies from sites I want? I don't mind "session cookies" from all sites, but persistent cookies, I only want from a handful of sites to "keep me logged in".

share|improve this question
up vote 9 down vote accepted

You can pick and choose which sites you want to keep cookies from or want to block from ever getting.

Tools > Options > Privacy

The Options dialog will appear. This is where you set your cookies preferences.

Firefox privacy option

To allow cookies to be set in the first place, check the following box:

☑ Accept cookies from sites

To keep all cookies from sticking, essentially turning them into session cookies (ones that won't be there next time you restart Firefox), select the option that will destroy them when you exit the browser:

Keep until: I close Firefox

To allow persistent cookies, ones that will be there next time Firefox is started, click Exceptions...

Firefox persistent cookies

Type in the domain of the site(s) you want to always accept and keep cookies from. Click Allow for each.

If instead you would like to prevent certain sites from ever storing cookies, click Block.

When you've finished entering all the sites, click Close, then OK and you're done.

share|improve this answer
This appears not to work when I use Firefox-Sync. See this question:… – what Jan 19 '14 at 7:10

The CookieSafe allows you do this easily from the status bar. Set it to 'Deny Cookies Globally', then allow the sites you want.

share|improve this answer
Or CS Lite ( Not as many features but it doesn't noticeably slow down the browser for me like CookieSafe (probably due to my large list of cookie exceptions). – mark4o Jan 1 '10 at 19:53

After setting the default behavior to deny cookies as explained in other answers, I use Cookie Button in the Status Bar extension.
It's one of the more comfortable ways to control cookies permission with a single click and yet it's very unobtrusive.

share|improve this answer

Tools - Options - Privacy - Choose custom policy change your setting how you want them, you can add exceptions for sites you want or don't want. The flexibility is quite powerful.

share|improve this answer

There are a number of cookie plugins that allow you to do this. I use one at home (forget the name) and have my default set to "deny", only allowing cookies on sites I like.

share|improve this answer

Cookie Culler is another way to have unwanted cookies deleted when you close Firefox.

share|improve this answer

You must log in to answer this question.

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