[Tutor] Cookie help

Conrad Koziol arkamir at softhome.net
Fri Nov 21 19:27:46 EST 2003

Hey everyone I'm having some troubles retrieving cookies. The script im
using is:


import os
import Cookie

cookies = Cookie.SimpleCookie()
value = cookies['id'].value
print 'Content-type: text/html\n'
print value

I set the cookie in another script. They are set as a SimpleCookie with
the values of username and id. The problem is the script returns an
error. (I don't quite have access to the error logs, at least yet). Any
help would be appreciated

More information about the Tutor mailing list