RE: sending multiple cookies with err_header_out()

2001-07-17 Thread Geoffrey Young



 -Original Message-
 From: Chad Phillips [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 16, 2001 5:23 PM
 To: mod perl
 Subject: sending multiple cookies with err_header_out() 
 
 
 Hello,
 
 I am using Apache::AuthCookie.  I need to be able to set 2 cookies.
 Apache::AuthCookie uses err_header_out() to set a cookie.  Is 
 their a way to
 use err_header_out()  to set two cookies?

$r-err_header_out() returns an Apache::Table object, so you can use the
methods from that class: 

$r-err_header_out-add('Set-Cookie' = 'foo=bar');

Apache::AuthCookie uses err_header_out() because it needs the cookies to
persist across redirects.  If you just want to set normal cookies, use
header_out() in the same way.  Or better, use Apache::Cookie from the
libapreq distribution on CPAN.

HTH

--Geoff



sending multiple cookies with err_header_out()

2001-07-16 Thread Chad Phillips

Hello,

I am using Apache::AuthCookie.  I need to be able to set 2 cookies.
Apache::AuthCookie uses err_header_out() to set a cookie.  Is their a way to
use err_header_out()  to set two cookies?

thanks
chad