Cookies

From MozillaZine Knowledge Base
Revision as of 21:17, 12 August 2008 by Dickvl (talk | contribs) (→‎Firefox: deleting the cookies file)
Jump to navigationJump to search

Cookies are small pieces of textual information stored by webpages on your computer. Their many uses include remembering login information and preserving the contents of your basket on shopping sites.

Cookie permissions

Mozilla Suite and SeaMonkey

Cookie permissions are controlled in "Edit -> Preferences -> Privacy & Security -> Cookies". You can choose to block all cookies, allow all cookies, allow cookies for the originating website only (third-party cookies) or you can allow cookies based on privacy settings. If you allow cookies, you can also select the following retention preferences:

  • Accept cookies normally
  • Accept for current session only (deletes the cookie the next time you exit your browser).
  • Accept cookies for __ days
  • Ask for each cookie (you can limit these warnings by choosing "except for session cookies")

Cookie Manager

The Mozilla Suite/SeaMonkey Cookie Manager (also accessible via "Tools -> Cookie Manager -> Manage Stored Cookies") lets you to view or delete individual cookies ("Stored Cookies" tab) and lets you override basic cookie settings so that you can allow or block cookies for individual sites ("Cookie Sites" tab).

Firefox

Cookie permissions are controlled in "Tools -> Options -> Privacy -> Cookies". You may choose to accept all cookies that websites wish to set or, in Firefox 1.5 and earlier, you may choose the option to accept cookies "for the originating site only", which will block third-party cookies that are often set by other companies who advertise on those sites.

In Firefox 2, the option to block third-party cookies (accept cookies "for the originating site only") was removed from the user interface (UI). [1] Users can still block third-party cookies in about:config, by modifying the preference network.cookie.cookieBehavior to 1. (For more information about this setting, see bug 324397 and bug 417800.)

Starting in Firefox 3, you can again block third-party cookies in the user interface, by deselecting (clearing) the option, "Accept third-party cookies". [2]

Exceptions list

As well as the basic permissions above, you may also make blacklists and whitelists using the Exceptions list. The settings in this list override your basic cookie settings, so that you can have stronger control over individual sites that you have manually added to the list. You can choose to allow an individual site to set cookies, or to set "session" cookies which are deleted once you have closed Firefox, or to stop it from setting cookies at all.

If websites report cookies are blocked

If you have set your Mozilla browser to accept cookies but websites are reporting that cookies are being blocked, see if the site is shown as blocked in the Firefox "Exceptions" list (under Tools -> Options -> Privacy -> Cookies") or in the Mozilla Suite/SeaMonkey "Cookie Sites" list (under "Tools -> Cookie Manager -> Manage Stored Cookies") and, if so, remove it from the list. If you still have problems, read this article.

Removing cookies

Mozilla Suite and SeaMonkey

To remove all cookies go to "Edit -> Preferences -> Privacy & Security -> Cookies -> Cookie Manager -> Stored Cookies (tab)" (or use "Tools -> Cookie Manager -> Manage Stored Cookies") and click "Remove All Cookies". To remove specific cookies, select a cookie from the list and click "Remove Cookie".

Firefox

To remove all cookies in Firefox 1.5, go to "Tools -> Options -> Privacy -> Cookies" and click "Clear Cookies Now". To remove specific cookies, click "View Cookies", select a cookie from the list, and click "Remove Cookie. In Firefox 2 and above, go to "Tools -> Options -> Privacy / Cookies -> Show Cookies..." and click "Remove All Cookies". To remove specific cookies, select a cookie from the list, and click "Remove Cookie".
Sometimes removing the cookies in the Cookie Manager is not sufficient and you need to delete the file that stores the cookie in your profile folder (Firefox 3: cookies.sqlite and Firefox 2 and 1.5: cookies.txt). See the section "Where are cookies stored" below for the location of that file.

Where are cookies stored

Cookie information is stored in two files: cookies.txt and hostperm.1. (Older versions used "cookperm.txt" instead of hostperm.1. [3])

Starting in Firefox 3.0 and SeaMonkey 2.0, cookie information is stored in "cookies.sqlite" and "permissions.sqlite".

File Description
cookies.txt
cookies.sqlite
Holds all of your cookies, including login information, session data, and preferences.
hostperm.1
permissions.sqlite
Holds preferences about which sites you allow or prohibit to set cookies, to display images, to open popup windows and to initiate extensions installation.

See also

External links