Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

6 Answers

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: apple.stackexchange.com/questions/117805/… –  what Jan 19 at 7:10
add comment

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 (addons.mozilla.org/en-US/firefox/addon/5207). 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
add comment

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
add comment

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
add comment

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.

https://addons.mozilla.org/en-US/firefox/search?q=cookie&cat=all

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.