When I print the content of my $mech I get the below only, nothing relating the session or cookies.
Set cookies are not returned in the content. They are returned in the response headers.
use strict; use warnings; use WWW::Mechanize; use Data::Dumper; my $mech = WWW::Mechanize->new; my $response = $mech->get ('http://your.url.here/'); print Dumper ($response->headers->{'set-cookie'});
🦛
In reply to Re^3: PHP Sessions and Perl
by hippo
in thread SOLVED! PHP Sessions and Perl
by bajangerry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |