question on the cookies and varnish

Paul A. Procacci pprocacci at
Wed Mar 28 20:32:46 CEST 2012

Haven't tested it, but it seems this would do what the parent wants.

`header.get(<header>, <regular expression>)`

import header;
set req.http.cookie = header.get(req.http.cookie, "PHPSESSID");


On Wed, Mar 28, 2012 at 08:12:15PM +0200, Martin Koch Andersen wrote:
> Den 28/03/2012 kl. 20.08 skrev Alexandre Priou:
> > hi at all
> >
> > I need to erase all cookies in varnish conf except the cookie with name : PHPSESSID
> >
> > how i can to do that ?
> This nasty way:
> Did anyone do a nice VMOD for this?
> --
> Martin Koch Andersen
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at


This message may contain confidential or privileged information. If you are not the intended recipient, please advise us immediately and delete this message. See for further information on confidentiality and the risks of non-secure electronic communication. If you cannot access these links, please notify us by reply message and we will send the contents to you.

More information about the varnish-misc mailing list