This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Mulongo oyo etiyamaki na archive. Tuna motuna mosusu soki osengeli na lisalisi

How do I get Firefox to close my program when I exit Firefox?

more options

When I later start Firefox and go to a program, it automatically opens without requiring my username and password. Want all my programs to close when I exit Firefox.

When I later start Firefox and go to a program, it automatically opens without requiring my username and password. Want all my programs to close when I exit Firefox.

All Replies (1)

more options

Websites generally keep you logged in by setting a cookie. Then when Firefox requests any files from that server, it sends the server back its cookies so the server can verify that you should be able to access those files.

You can set Firefox to expire cookies when you exit out of it. There are a few steps to this:

(1) Set your privacy preference on the Options page

"3-bar" menu button (or Tools menu) > Options

In the left column, click Privacy. Then on the right side, if you do not see detailed settings for cookies, change the selector from "Firefox will: Remember history" to "Firefox will: Use custom settings for history"

Then change the cookie lifetime setting from "Keep until: they expire" to "Keep until: I close Firefox".

(2) Clear existing cookies before exiting

Before closing Firefox, you can use the "Clear Recent History" feature to remove the existing cookies. You can call that up from the History menu, or press Ctrl+Shift+Delete.

If necessary, expand the Details panel so you can uncheck everything but Cookies.

Then with the time range set to Everything, click Clear Now.

(3) Keep session cookies out of Firefox's session history file

When you have Firefox restore your previous session windows and tabs, it uses the cookies from that time. To prevent that, you can make a settings change as follows:

(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.

(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 and enter the desired value:

  • 0 = retain session cookies for all sites in session history (default)
  • 1 = retain session cookies for HTTP sites in session history, but not HTTPS sites (I suggest trying this one)
  • 2 = do not retain session cookies for any sites in session history

I think that should cover it!