httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sorin Manolache <sor...@gmail.com>
Subject Re: Set-Cookie
Date Thu, 26 Mar 2009 08:52:45 GMT
On Thu, Mar 26, 2009 at 09:37, Marco Spinetti <m.spinetti@pisa.iol.it> wrote:
> I have a doubt about ho to set multiple cookies.
> I'm using apache 2.2 and in my module handler I'm trying to set two
> different cookies with:
>
> apr_table_set(r->headers_out, "Set-Cookie", co);
>
> apr_table_set(r->headers_out, "Set-Cookie", co1);
>
> It seems that the second instruction override the first one.
> So my question: how can I set two cookies in my module?

apr_table_addn(r->headers_out, "Set-Cookie", cookie);


-- 
A: Because it reverses the logical flow of conversation.
Q: Why is top-posting frowned upon?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Mime
View raw message