Cookies.txt: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(removed Privacy and Security category; users should go via "Cookies" article)
m (Linkify)
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{profile-file|filename=cookies.txt}}
{{profile-file|filename=cookies.txt}}


The file '''<tt>cookies.txt</tt>''' contains lines of plain-text called "[[cookies]]" which may be  stored and retrieved by websites that you visit.
The file '''cookies.txt''' was used in Firefox 2 or below and in Mozilla Suite/SeaMonkey 1.x  for storing [[cookies]], which are lines of plain-text stored and retrieved by websites you visit
 
Starting in SeaMonkey 2 and Firefox 3,  cookies are stored in the database file [[cookies.sqlite]].  In converted profiles,  '''cookies.txt''' data is migrated to [[cookies.sqlite]].  [https://bugzilla.mozilla.org/show_bug.cgi?id=230933]
 
This format is obsolete. Please use [[cookies.sqlite]] instead.


==Editing==
==Editing==
Line 23: Line 27:
|- valign="top"
|- valign="top"
| <tt>1146030396</tt>
| <tt>1146030396</tt>
| The time at which the cookie will expire (the number of seconds since 12 a.m., January 1, 1970).
| The time at which the cookie will expire (the number of seconds since [[wikipedia:Unix time|12 a.m., January 1, 1970]]).
|- valign="top"
|- valign="top"
| <tt>wikiUserID</tt>
| <tt>wikiUserID</tt>
Line 38: Line 42:
Deleting cookies.txt will reset (clear) all your cookies. A new file will be created on start up or when the application first needs to write to the file.
Deleting cookies.txt will reset (clear) all your cookies. A new file will be created on start up or when the application first needs to write to the file.


==Related bugs==
==Related bug reports==
*[https://bugzilla.mozilla.org/show_bug.cgi?id=149544 Bug 149544 - Protect/lock cookies from USER/PROGRAM deletion (i.e. "Remove all cookies")]
*[https://bugzilla.mozilla.org/show_bug.cgi?id=149544 Bug 149544 - Protect/lock cookies from USER/PROGRAM deletion (i.e. "Remove all cookies")]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=230933  Bug 230933 -  move cookies to mozstorage]
*[https://bugzilla.mozilla.org/show_bug.cgi?id=257288 Bug 257288 - read-only profile files (cookies, bookmarks, etc) not respected, results in data loss]
*[https://bugzilla.mozilla.org/show_bug.cgi?id=257288 Bug 257288 - read-only profile files (cookies, bookmarks, etc) not respected, results in data loss]
*[https://bugzilla.mozilla.org/show_bug.cgi?id=297313 Bug 297313 - multiple cookies files made in profile]
*[https://bugzilla.mozilla.org/show_bug.cgi?id=297313 Bug 297313 - multiple cookies files made in profile]
Line 45: Line 50:
==See also==
==See also==
* [[Cookies]]
* [[Cookies]]
* [[RSS cookies (Thunderbird)]]
* [[RSS cookies - Thunderbird]]
* [[Websites report cookies are disabled when they're not]]
* [[Websites report cookies are disabled when they're not]]
* [[Multiple cookies files created]]


[[Category:Profile contents (Firefox)]]
[[Category:Profile contents (Firefox)]]
[[Category:Profile contents (Thunderbird)]]
[[Category:Profile contents (Thunderbird)]]
[[Category:Profile contents (Mozilla Suite)]]
[[Category:Profile contents (Mozilla Suite)]]

Latest revision as of 10:04, 11 September 2017

The file cookies.txt was used in Firefox 2 or below and in Mozilla Suite/SeaMonkey 1.x for storing cookies, which are lines of plain-text stored and retrieved by websites you visit.

Starting in SeaMonkey 2 and Firefox 3, cookies are stored in the database file cookies.sqlite. In converted profiles, cookies.txt data is migrated to cookies.sqlite. [1]

This format is obsolete. Please use cookies.sqlite instead.

Editing

A typical line from the file might read (the spaces are tabs in the original file):

kb.mozillazine.org FALSE / FALSE 1146030396 wikiUserID 16993

The meaning of the above line is as follows:

kb.mozillazine.org The name of the website (server) that stored the cookie.
FALSE Whether the cookie can be read by other machines at the same domain (mozillazine.org); in this case, no.
/ The directory path for which the cookie is relevant; in this case, / denotes the home directory (i.e., the URL http://kb.mozillazine.org/).
FALSE Whether the cookie requires a secure connection; in this case, no.
1146030396 The time at which the cookie will expire (the number of seconds since 12 a.m., January 1, 1970).
wikiUserID The name of the cookie.
16993 The value of the cookie.

Moving

This file can be moved to a different profile without any extra effort.

Deleting

Deleting cookies.txt will reset (clear) all your cookies. A new file will be created on start up or when the application first needs to write to the file.

Related bug reports

See also