Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Setting a cookie

by projekt21 (Friar)
on May 15, 2002 at 09:15 UTC ( #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
Node Status?
node history
Node Type: note [id://166673]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2021-04-16 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?