cookie

Ajay abra9823 at mail.usyd.edu.au
Thu Aug 26 12:22:53 CEST 2004


hi!

i am printing a simple cookie, but instead of printing
um=name:blah&access:admin&exp:2312390.909

its printing
um="name:blah&access:admin&exp:2312390.909"

why the quotes?

i am creating the cookie as follows:
data = "user:" + username + "&access:" + access + "&expiry:" + str(expTime)
cookie_digest = hmac.new(key, data).digest()
cookie = Cookie.SimpleCookie()
cookie_data = data + "&digest:" + cookie_digest
cookie["um_cookie"] = cookie_data
cookie["um_cookie"]["path"] = "/~abrar1/hons/interface/admin/"
print cookie

thanks
cheers



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the Python-list mailing list