just to note for the newer users, Apache::Cookie is part of libapreq, not
the standard mod_perl package... you can get it at 
http://www.perl.com/CPAN-local/modules/by-module/Apache/libapreq-0.31.tar.gz

or any other CPAN mirror...

--Geoff


> -----Original Message-----
> From: Alex Menendez [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 25, 2000 11:45 AM
> To: Geoffrey Young
> Cc: 'Matthias Hanns'; [EMAIL PROTECTED]
> Subject: Re: how to set more then one cookie
> 
> 
> 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
> > >
> 

Reply via email to