[issue22296] cookielib uses time.time(), making incorrect checks of expiration times in cookies

Rebecka report at bugs.python.org
Tue Sep 2 08:15:27 CEST 2014


Rebecka added the comment:

Akira is correct: using time.mktime to produce the expiration date for the cookie is wrong (thank you very much for the pointers!).

Using e.g. http.cookiejar.http2time with a HTTP formatted date string gives a correct time stamp (with which cookie.is_expired succeeds), so this was not a bug (just user error...).

----------
resolution:  -> not a bug
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22296>
_______________________________________


More information about the Python-bugs-list mailing list