Subject: | allow different "ignore_discard" value at save() time |
In HTTP::Cookies v6.01, the "save" method only saves "Discard" cookies
if the "ignore_discard" attribute was set to a true value at object
construction.
If that did not occur, then currently there is no way to cause "Discard"
cookies to be written to file without breaking object encapsulation.
This is a problem when code wishing to save the complete contents of a
cookie jar does not have control over its creation.
Please consider adding either:
1. an "ignore_discard" method to allow altering of this attribute after
construction; or
2. a second, optional argument to the "save" method which allows
overriding of the object-based "ignore_discard" attribute:
$cookie_jar->save( $file, $ignore_discard )