[Tutor] Cookies??
Pablo Mateo Vázquez
pablo@universodigital.net
Mon, 05 Feb 2001 20:37:32 +0100
Hi, my problem is:
How to read the Cookie in a cgi program?
I write:
c.load(os.environ["HTTP_COOKIE"])
And I get the follow error:
def __getitem__(self, key): return self.data[key]
KeyError: HTTP_COOKIE
The cookie was written in a previous cgi program:
c=Cookie.Cookie()
c["login"]=log_encrip
c["login"]["path"]=pass_encrip
c["login"]["expires"]=fecha_expira
c.output(header="Cookie:")
...
...
print "Content-type: text/html"
print c
print
Can you said to me what is the problem?
Thanks.