Re: [mp2] Apache::Cookie only sets last cookie?

[prev] [thread] [next] [Date index for 2005/02/03]

From: Joe Schaefer
Subject: Re: [mp2] Apache::Cookie only sets last cookie?
Date: 20:25 on 03 Feb 2005
ben syverson <ben@xxxxx.xxx> writes:


> I haven't looked at the code, but I suspect that "bake" is
> accidentally doing the equivalent of $r->headers_out->set('Set-Cookie'
> => $cookie) rather than $r->headers_out->add('Set-Cookie' =>
> $cookie)...


No that's not the problem.  There's a bug in how 2.04 bakes
cookies (it sets the table entry using apr_table_addn on a 
stack buffer instead of calling apr_table_add).  You should 
be able to find a discussion of this isue somewhere in this
list's archives, as well as the patch which fixes it.  Otherwise
I suggest you try using apreq's subversion trunk and see
if your problem goes away.

> It doesn't help that the libapreq2 test suite only
> attempts to set one cookie. :)

Yup.  Patches are always welcome.

        -- 
        Joe Schaefer

[mp2] Apache::Cookie only sets last cookie?
ben syverson 10:55 on 03 Feb 2005

Re: [mp2] Apache::Cookie only sets last cookie?
Kurt Hansen 14:32 on 03 Feb 2005

Re: [mp2] Apache::Cookie only sets last cookie?
ben syverson 20:03 on 03 Feb 2005

Re: [mp2] Apache::Cookie only sets last cookie?
Joe Schaefer 20:25 on 03 Feb 2005

Re: [mp2] Apache::Cookie only sets last cookie?
ben syverson 04:32 on 04 Feb 2005

Generated at 11:21 on 20 Feb 2005 by mariachi v0.52