* Chris Pizzo <[EMAIL PROTECTED]> [2002-07-12 17:02]:
> This works but I need to set multiple cookies. Im doing this:
>
> my $c = new CGI::Cookie(-name => 'SID', -value => 'stuff', -expires
> => '+6M');
> my $cc = new CGI::Cookie(-name => 'BUD', -value =>
> 'Wassup', -expires => '+6M');
>
> $r->headers_out->set('Set-Cookie',$cc);
> $r->headers_out->set('Set-Cookie',$c);
>
> $r->cgi_header_out('Location',"mypage.html");
> $r->send_http_header;
$r->headers_out->add('Set-Cookie', $c);
$r->headers_out->add('Set-Cookie', $cc);
Or better yet, use Apache::Cookie, which has a bake() method that can be
used multiple times.
(darren)
--
Biographical history, as taught in our public schools, is still largely a
history of boneheads: ridiculous kings and queens, paranoid political
leaders, compulsive voyagers, ignorant generals -- the flotsam and jetsam
of historical currents. The men who radically altered history, the great
scientists and mathematicians, are seldom mentioned, if at all.
-- Martin Gardner