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

Re: Setting a cookie

by projekt21 (Friar)
on May 15, 2002 at 09:15 UTC ( [id://166673]=note: print w/replies, xml ) Need Help??


in reply to Setting a cookie

As name is the only required attribute on Set-Cookie I see no problem with your code (except that you have a lowercase "cookie" instead of the correct uppercase "Cookie" in "Set-Cookie"). For more info:

For Perl CGIs I strongly recommend using CGI. Creating Cookies is easy then (along with other thingies):
use CGI; $query = CGI->new; $cookie = $query->cookie(-name=>'sessionID', -value=>'xyzzy', -expires=>'+1h', -path=>'/cgi-bin/database', -domain=>'.capricorn.org', -secure=>1); print $query->header(-cookie=>$cookie);

alex pleiner <alex@zeitform.de>
zeitform Internet Dienste

Log In?
Username:
Password:

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

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

    No recent polls found