Sending multiple cookies per request

2000-05-26 Thread Drew Taylor

I'm trying to set multiple cookies with $r-header_out('Set-Cookie' =
$custCookie); I tried having 2 header_out calls with the Set-Cookie key,
but then only the second one got set. Do I need to use Apache::Cookie?
Is there a way to set multiple cookies ala CGI.pm? ( ie
$self-{CGI}-header(-cookie = [$customerCookie,$lightboxCookie]); )

It's not a problem to add Apache::Cookie, but if I don't have to load it
I won't. :-)

TIA.

-- 
Drew Taylor
Vialogix Communications, Inc.
501 N. College Street
Charlotte, NC 28202
704 370 0550
http://www.vialogix.com/



Re: Sending multiple cookies per request

2000-05-26 Thread JoshNarins

From the man pages of Apache

$r-headers_out-add('Set-Cookie',$cookie);

:)



Re: Sending multiple cookies per request

2000-05-26 Thread Drew Taylor

Thank you both for the quick response. I was just reading  pg 443 which
was telling me about the $r-headers_out reference to Apache::Table.

[EMAIL PROTECTED] wrote:
 
 From the man pages of Apache
 
 $r-headers_out-add('Set-Cookie',$cookie);
 
 :)

-- 
Drew Taylor
Vialogix Communications, Inc.
501 N. College Street
Charlotte, NC 28202
704 370 0550
http://www.vialogix.com/



RE: Sending multiple cookies per request

2000-05-26 Thread Geoffrey Young



 -Original Message-
 From: Drew Taylor [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 26, 2000 10:44 AM
 To: modperl
 Subject: Sending multiple cookies per request
 
 
 I'm trying to set multiple cookies with $r-header_out('Set-Cookie' =
 $custCookie); I tried having 2 header_out calls with the 
 Set-Cookie key,

use $r-headers_out-add insead
note the s^

that should work ok

HTH

--Geoff


 but then only the second one got set. Do I need to use Apache::Cookie?
 Is there a way to set multiple cookies ala CGI.pm? ( ie
 $self-{CGI}-header(-cookie = [$customerCookie,$lightboxCookie]); )
 
 It's not a problem to add Apache::Cookie, but if I don't have 
 to load it
 I won't. :-)
 
 TIA.
 
 -- 
 Drew Taylor
 Vialogix Communications, Inc.
 501 N. College Street
 Charlotte, NC 28202
 704 370 0550
 http://www.vialogix.com/