On 2005-04-05, Mark Stosberg <[EMAIL PROTECTED]> wrote:
> This is how I figured out how to test a cookie with WWW::Mechanize:
>
> my $ses_id_from_cookie =
> $a->cookie_jar->{COOKIES}->{".$CFG{SITE_DOMAIN}"}->{'/'}->{CGISESSID}->[1];
> ok($ses_id_from_cookie, "admin - Login screen sets cookie
> ($ses_id_from_cookie)");
>
> Surely there is an easier/better way than digging my hand so rudely into the
> cookie jar like that.
Ok, I had something else confirm that this functionality is missing from
HTTP::Cookies.
I've filed a bug report to suggest it offer easy access methods for
this, like the Mech does for links:
http://rt.cpan.org/NoAuth/Bug.html?id=12151
Mark