Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: how to set a cookie without using CGI.pm?

by davis (Vicar)
on Feb 04, 2005 at 15:22 UTC ( [id://428086]=note: print w/replies, xml ) Need Help??


in reply to how to set a cookie without using CGI.pm?

You should try seeing what CGI does:
perl -MCGI -e 'my $q = CGI->new(); print $q->header(-type=>"text/html +", cookie => $q->cookie(-name=>"foo",-value=>"bar"))'
This prints the "Set-Cookie" line first, and follows the "Content-Type" with the required double-newline

davis
It wasn't easy to juggle a pregnant wife and a troubled child, but somehow I managed to fit in eight hours of TV a day.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-23 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found