Re: multiple cookies in Apache module.
On Oct 15, 1999 at 15:30:08 +0700, Simon Tneoh Chee-Boon twiddled the keys to say: > Hello, I already tested by using telnet. I found that CGI->header works fine, > it sends two line > of "Set-Cookie". Apache->header_out doesn't work, if I call it twice, only the > second > cookie is sent in one "Set-Cookie" line. So I wonder is it because I'm not > familiar with > the methods in Apache module, i.e. I miss out something, or Apache->header_out > does > not support this? $r->headers_out->add( 'Set-Cookie' => $cookie ); Rick Myers[EMAIL PROTECTED] The Feynman Problem 1) Write down the problem. Solving Algorithm 2) Think real hard. 3) Write down the answer.
Re: multiple cookies in Apache module.
Jay J wrote: > Hey Simon, > In order to debug.. why not temporarily send two headers, then one gets sent > to the browser (so you can see it)? > Either that or use telnet/lwp-request and get a look at it that way.. > -Jay J Hello, I already tested by using telnet. I found that CGI->header works fine, it sends two line of "Set-Cookie". Apache->header_out doesn't work, if I call it twice, only the second cookie is sent in one "Set-Cookie" line. So I wonder is it because I'm not familiar with the methods in Apache module, i.e. I miss out something, or Apache->header_out does not support this? Thanks. -- Simon Tneoh Chee-Boon [EMAIL PROTECTED] http://www.tneoh.zoneit.com/simon/ http://www.e-my.net.my/wilayahpersekutuan/simon/
multiple cookies in Apache module.
Hello, Thanks in advance for any helps. I know that to send multiple cookies to the client, we can do like: CGI->header(-cookie => [$cookie1, $cookie2]); And it will send the following headers: Set-Cookie: cookie1=cookie1val Set-Cookie: cookie2=cookie2val When I try to do this in Apache module: $r->header_out('Set-Cookie' => [$cookie1, $cookie2]); or $r->header_out('Set-Cookie' => $cookie1); $r->header_out('Set-Cookie' => $cookie2); they fail. I wonder how to send multiple cookies in Apache module? Or I can only combine all the information into one string and set it like the TicketTool.pm example? Thanks. Regards, Simon. -- Simon Tneoh Chee-Boon [EMAIL PROTECTED] http://www.tneoh.zoneit.com/simon/ http://www.e-my.net.my/wilayahpersekutuan/simon/