you can also use Apache::Cookie
and do something like this:
my $cookie = Apache::Cookie->new($r,
-name => 'q_string',
-value => $value,
-expires => '+3h',
-path => '/'
);
$cookie->bake;
my $cookie2 = Apache::Cookie->new($r
-name => 'name2',
-value => $value2,
-expires => '+3h',
-path => '/'
);
$cookie2->bake;
-amen
Geoffrey Young wrote:
> well, since this is the mod_perl mailing list :)
>
> my $r = Apache->request;
> $r->headers_out->add('Set-Cookie' => "cookie a stuff");
> $r->headers_out->add('Set-Cookie' => "cookie b stuff");
>
> should work ok...
>
> HTH
>
> --Geoff
>
> > -----Original Message-----
> > From: Matthias Hanns [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 25, 2000 11:19 AM
> > To: [EMAIL PROTECTED]
> > Subject: how to set more then one cookie
> >
> >
> > Hi all together,
> >
> > when I want to set one cookie I use the following way:
> >
> > ....
> > my $cookie = CGI::cookie( ... ); # or with OO: my $q = new CGI; my
> > $cookie = $q->cookie( ... );
> > ....
> > print CGI::header($cookie);
> > ....
> >
> > Now my question: How I can set more then one cookie? Any
> > hints, where I can
> > read or how to do?
> > Thnx, Matthias
> >