https://issues.apache.org/bugzilla/show_bug.cgi?id=49532

           Summary: mod_cache: Set-Cookie headers are appended to cached
                    headers
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_cache
        AssignedTo: [email protected]
        ReportedBy: [email protected]


When an attempt is made to cache a response, and the response contains a
Set-Cookie header, the set_cookie_doo_doo() function adds revalidated cookies
to the ever growing list of old cookies, resulting in the client getting the
same cookie over and over again.

The workaround is to ask the cache to ignore the Set-Cookie header.

static int set_cookie_doo_doo(void *v, const char *key, const char *val)
{
    /* FIXME: We sometimes get incoming cookies that replace existing cookies,
     * this simple addn causes cookies to get added over and over. Think of
     * a way to fix this.
     */
    apr_table_addn(v, key, val);
    return 1;
}

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to