Dagur Páll Ammendrup
dagurp at heimsnet.is
Mon Feb 7 18:32:40 EST 2005
Gregory (Grisha) Trubetskoy wrote: > > > On Fri, 4 Feb 2005 dagurp at heimsnet.is wrote: > >> 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". > > > > How do you know this? > > Try writing the cookie to the error log to see what your server sends > out, with something like > > req.log_error(str(cookie)) > > Grisha The cookie information in Firefox, instead of some expiration time it just says end of session. I tried your suggestion but it just returns the name of the cookie. -- 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
|