[mod_python] Cookie problems

Dagur Páll Ammendrup dagurp at heimsnet.is
Fri Feb 4 11:52:20 EST 2005


Hi,
I create a cookie and set it to expire in 2 weeks like this:

 cookie = Cookie.Cookie('foo', bar)
 cookie.expires = time() + 1209600  # 2 weeks
 Cookie.add_cookie(req, cookie)

But whatever I set "expires" to it is always set to "end of session".
I also tried doing this: Cookie.add_cookie(req, 'foo', bar, 
expires=time() + 1209600)

but that doesn't change anything. is this because I use sessions too?


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 3.2.2005



More information about the Mod_python mailing list