Cookies

Skip Montanaro skip at pobox.com
Mon Nov 19 20:10:54 CET 2001


    David> I want to read the values of a cookie that was placed on my
    David> computer by a web site.  I opened it up and it appears to be
    David> encoded.  Is there anyway to decode the values?

Cookies are nothing more than key/value pairs.  Subject to certain
limitations (length, character set), I believe web sites are welcome to
encode the values any way they want, so the short answer is, "no".  If you
know what steps were taken to encode the value, you may be able to decode
it, but that's not always going to be trivial.

-- 
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)




More information about the Python-list mailing list