Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: cookie problem

by fishmonger (Chaplain)
on Nov 11, 2014 at 18:28 UTC ( [id://1106865]=note: print w/replies, xml ) Need Help??


in reply to cookie problem

The cookie was never sent due to the print "Location: wel.pl?";

EDIT:
I see that you've updated your post to use print $cg->redirect("wel.pl"); instead of the "Location:" header. That change won't fix the problem you're having because the attempt to send the cookie following that redirect statement won't be sent.

Personally, I prefer to keep all the cookie data on the server side via the CGI::Session module.
CGI::Session::Tutorial

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-03-28 20:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found