my $cgi = new CGI::Lite; my $cookies = $cgi->parse_cookies;
That will happily parse any cookies in the request from the browser to your CGI script. You are not calling your CGI script from a browser so there won't be any cookies.
Inspect the responses to your $mech object to extract the cookies from there instead.
PS. Don't use indirect object notation. my $cgi = CGI::Lite->new; is preferred.
🦛
In reply to Re: PHP Sessions and Perl
by hippo
in thread SOLVED! PHP Sessions and Perl
by bajangerry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |