Dear Gisle,
The difference in the two sites behavior turns out to be the "discard" field used by the www.magna.isa.gov.il site. Adding the (...ignore_discard => 1) to the constructor's hash forced a save to the file. Indeed, your CPAN documentation of HTTP::Cookies includes the following: $cookie_jar->save( $file ) This method file saves the state of the $cookie_jar to a file. The state can then be restored later using the load() method. If a filename is not specified we will use the name specified during construction. If the attribute ignore_discard is set, then we will even save cookies that are marked to be discarded. The last sentence alludes to the "discard" field's role in the package. (And there are a few more hints in passing.) But IMHO, this issue of "discard" and no-expired-field merits a more direct treatment. This can be right in the "Description" section or at least under a "NOTES" heading. For your consideration... Regards, Meir