We got bit by this today through Test::WWW::Mechanize.
On Tue Dec 06 08:33:29 2005, GAAS wrote:
Show quoted text> But should it share the cookie_jar with the parent user agent
> or should it get a copy?
It should get a copy because that's what "clone" sounds like it does.
If you want the sharing behavior, it begs the question: why clone at all?
If there are use-cases for sharing that come up, a share_cookie_jar
option can be added.
It's also unfortunate that the current behavior of deleting the cookie
jar is undocumented, as it's an unintuitive behavior.