Author piotr.dobrogost
Recipients piotr.dobrogost
Date 2013-02-08.21:23:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It seems there's no information on how should session cookies be stored in the Netscape/Mozilla's cookies.txt file with regard to expiry time - see Maybe Netscape has not been saving such cookies at all thus this lack of specification? Nevertheless, both wget and curl use 0 as expiry time to denote session cookies; it works both when reading cookies from file and writing to file. However Python's MozillaCookieJar's class uses empty string for the same purpose which makes it incompatible both with wget and curl - see

I propose to make a change in implementation of MozillaCookieJar class and treat cookies with 0 set as expiry time as session cookies both when reading from a file and writing to a file.

Motivation for this bug report comes from the following question on Stack Overflow -
Date User Action Args
2013-02-08 21:23:23piotr.dobrogostsetrecipients: + piotr.dobrogost
2013-02-08 21:23:23piotr.dobrogostsetmessageid: <>
2013-02-08 21:23:23piotr.dobrogostlinkissue17164 messages
2013-02-08 21:23:22piotr.dobrogostcreate