in reply to SOLVED! PHP Sessions and Perl
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.
🦛
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: PHP Sessions and Perl
by bajangerry (Sexton) on Mar 16, 2021 at 17:30 UTC | |
by hippo (Archbishop) on Mar 16, 2021 at 17:46 UTC | |
by bajangerry (Sexton) on Mar 16, 2021 at 19:11 UTC |