Setting expirty data on a cookie

sophie_newbie paulgeeleher at gmail.com
Tue Apr 22 12:21:44 EDT 2008


Does anyone know how to do this? I can't seem to make it work.

I'm using:

c = Cookie.SimpleCookie()
c['data'] = "unamepwordwhatever"
c.expires = time.time() + 300
print c


This doesn't seem to work, so I'm assuming isn't the correct way to
set an expiry data? Anyone able to help me out here?

Thanks!



More information about the Python-list mailing list