Menu

#2 Multiple Cookies cannot be set from ASP.NET application

open-accepted
nobody
5
2009-04-15
2007-06-27
No

http://issues.apache.org/bugzilla/show_bug.cgi?id=33900
submitted by kuba lipinski <klip mp.pl>

------------------------------
Multiple Cookies cannot be set from ASP.NET application because they are
replaced by function apr_table_setn.

Fix:

WorkerRequest.h, Line 542
virtual void SendKnownResponseHeader(int index, String* value)

if (index == HeaderContentType)
ap_set_content_type(rr, poolval);
else
if(index == HeaderSetCookie)
apr_table_addn(rr->headers_out, response_headers_name_c[index], poolval);
else
apr_table_setn(rr->headers_out, response_headers_name_c[index], poolval);
------------------------------

Discussion

  • William A. Rowe, Jr.

    • status: open --> open-accepted
     
  • William A. Rowe, Jr.

    Still investigating which should be addn vs setn.

     

Log in to post a comment.