Discussion Locked

Cookie format

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Can anyone tell me the format a cookie file takes?

Example:

,, etc

Cant find it anywhere.

9 replies

by joncr

Thanks but I'm after the format of the data within the text file for each cookie. Also I cant load the last url in your comment.

by joncr

Thanks but this explains how to set/delete/read a cookie from a cgi script.

by nikki96

Depends on the browser and OS.
Opera's is (was?) binary. IE and NN are text, but sometimes encrypted. You can contact each browser's support for details on the files, but they only supply it to developers.

From Opera's support...
"Opera's cookie file format is binary. The format is available, on
request, to external developers that wish to display/edit Opera's
cookie file.
The cookie file in version 4 will be completly different and
incompatible with the v3.x cookie file. The new format will let a v4.x
Opera read a cookiefile written by v5.x,even if new fields are added."

This site is one of the best.
http://www.cookiecentral.com/faq/
(removes spaces from URL, if any)
If anyone actually archived the file formats, it'd be there.

by joncr

Thanks, thats the sort of thing, do you have the text format for IE5, 5.5 or 6. Looks encrypted but could be plain text.

This discussion is closed to new replies.