httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anson ho <>
Subject Re: [users@httpd] How to combine multiple set-cookie headers into one?
Date Thu, 15 Jan 2009 12:46:46 GMT
   I finally got Header command work (problem is due to
installation). But I still can't solve my originally problem, after the
header command is run, a new Set-Cookie Header is appended. That is not what
I want. What I want is describe below.

 Originally reply header

 Set-Cookie: key1=A unknown string
 Set-Cookie: key2=Another unknown string

 What I want is, 1) the above two headers will combine to one Set-Cookie
header as below.

                    Set-Cookie: key1=A unknown string; key2=Another unknown

  or 2) the second Set-Cookie header convert to below

                    My-Cookie: key2=Another unknown string

Please advise.


On Mon, Jan 5, 2009 at 10:19 AM, Morgan Gangwere <>wrote:

> anson ho wrote:
>> Hi Morgan,
>>      Thanks for your reply.
>>    The case is that, many cell phone clients can't handle multiple
>> Set-Cookie headers, and I don't have the right to change the the web
>> application to modify the reply headers. So, it seems to me that change the
>> headers in apache web server is the only option. I've read that
>> can change the headers, and I've tried but no success. So I
>> want to someone to point me to the correct direction. I am pretty new to
>> apache web server administration.
> the Set-Cookie header can set multiple cookies.
> try adding this line:
> Set-Cookie MyTestCookie=MyTestValue;MyOtherTestCookie=MyOtherTestValue
> and load the page, then check if the cookies are set.
> Under firefox, the cookies are visible from tools->options->privacy->show
> cookies
> Search for your cookie name or for the domain that you registered the
> cookies with (defaultly, the domain that sent the headers)
> --
> Morgan Gangwere
> Unknown Software
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:> for more info.
> To unsubscribe, e-mail:
>   "   from the digest:
> For additional commands, e-mail:

View raw message