use CGI qw/:standard/;use CGI::Cookie;$c = new CGI::Cookie(-name => 'foo', -value => 'bar', -expires => '+3M', -domain => '.capricorn.com', -path => '/cgi-bin/database', -secure => 1 );print "Set-Cookie: $c\n";print "Content-Type: text/html\n\n";
$cgi->{cookie}{$name} = "$value";
In reply to:I tried setting raw cookie data as well in the header section but that also doesn't seem to work.Is there some other way this can be accomplished?