[Varnish] #563: Unable to mangle one of multiple Set-Cookie headers.

Varnish varnish-bugs at projects.linpro.no
Tue Sep 29 15:47:22 CEST 2009

#563: Unable to mangle one of multiple Set-Cookie headers.
 Reporter:  are       |       Owner:  phk
     Type:  defect    |      Status:  new
 Priority:  normal    |   Milestone:     
Component:  varnishd  |     Version:  2.0
 Severity:  normal    |    Keywords:     
 REF: rfc2109, part 4.2.1  General:
 "An origin server may include multiple Set-Cookie headers in a response."

 We got a backend server that sent two Set-Cookie headers and want to strip
 out the ones we don't need based on certain factors. The problem is that
 only the first header is available for processing - which in this case is
 always "JSESSIONID". It's the second headers that contains all the good
 stuff... but are not available for regexp matching.
 But, if we /do/ mangle the available SetCookie header, the second one

 Without considering the details, I would think the easy way is just to
 merge them so they can be managed as one in vcl.

Ticket URL: <http://varnish.projects.linpro.no/ticket/563>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator

More information about the varnish-bugs mailing list