Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^6: Cookie->fetch problem

by tultalk (Monk)
on Mar 09, 2017 at 18:43 UTC ( [id://1184077]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1184077]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-26 04:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found