in reply to Re^2: PHP Sessions and Perl
in thread SOLVED! PHP Sessions and Perl

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'});

🦛

Replies are listed 'Best First'.
Re^4: PHP Sessions and Perl
by bajangerry (Sexton) on Mar 16, 2021 at 19:11 UTC
    Ahhhhh!!! I have seen the light!!!