Multiple Set-Cookie Headers

Kenny Deckers kennyds at ac-systems.com
Mon Nov 14 09:42:59 CET 2011


Hi,

I'm having the following issue with "multiple set-cookie headers":

Below you can see a curl request to a website that is running varnish:

root at magento-development:/# curl -I http://XXXXXXXXX

[1] 5332
root at magento-development:/# HTTP/1.1 200 OK
Date: Thu, 10 Nov 2011 14:49:56 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny13 with Suhosin-Patch
X-Powered-By: PHP/5.2.6-1+lenny13
*Set-Cookie: store=scfr; expires=Fri, 09-Nov-2012 14:49:56 GMT; path=/; domain=XXXXXXXXX; httponly
Set-Cookie: frontend=9ac04aa3912eb78eb79f98dd531f7ba6; expires=Thu, 10 Nov 2011 15:49:57 GMT; path=/;*domain=XXXXXXXXX; HttpOnly
Expires: Thu, 10 Nov 2011 16:49:57 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
*Set-Cookie: EXTERNAL_NO_CACHE=1; expires=Thu, 10-Nov-2011 15:49:57 GMT; path=/; domain=XXXXXXXXX; httponly*
X-Cache-Debug: 1
Vary: Accept-Encoding,User-Agent
Content-Type: text/html; charset=UTF-8

As you can see there are multiple Set-Cookie headers can't be used since a limitation of Varnish is that it will only be able to "analyze" the first line. I tried this header-modification vmod:

https://github.com/KristianLyng/libvmod-header

which did not solve the issue.

Any help here?

Kind regards,
Kenny

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20111114/d2d148c4/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: business_card.jpg
Type: image/jpeg
Size: 25873 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20111114/d2d148c4/attachment-0003.jpg>


More information about the varnish-misc mailing list