in reply to Re^5: Cookie->fetch problem
in thread Cookie->fetch problem

Hi

Never seen something like this in the error log before.

Thu Mar 9 12:33:53 2017 manage_users.cgi: $VAR1 = {};

Is that from data dumper?

Replies are listed 'Best First'.
Re^7: Cookie->fetch problem
by kennethk (Abbot) on Mar 09, 2017 at 19:00 UTC
    That is the output from Data::Dumper. You can see the cookies hash (aliased here to $VAR1) is empty. Otherwise, it might output something like:
    [Thu Mar 9 12:33:53 2017] manage_users.cgi: $VAR1 = {'CGISESSID' => '1 +234deadbeef'};

    For a quasi-independent test, what happens when you add the following to your code:

    use CGI; my $cgi = CGI->new; warn $_ for $q->cookie();
    and see if the CGI object has any cookies in it.

    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.