for example in IE cookies are stored in files go to
Tools --> Internet Options --> Settings --> View Files
then search for txt files that begin with name cookie
they are generally named like cookie:user@site
you can open them just like any file,
in firefox it is a little harder because all cookies are stored in one file. and I don't know its format :-)
but I guess you can download the source and find the format your self :-)