[Varnish] #597: Update VCLExampleRemovingSomeCookies
Varnish
varnish-bugs at projects.linpro.no
Fri Dec 4 15:38:42 CET 2009
#597: Update VCLExampleRemovingSomeCookies
----------------------+-----------------------------------------------------
Reporter: zviratko | Type: documentation
Status: new | Priority: normal
Milestone: | Component: documentation
Version: trunk | Severity: normal
Keywords: |
----------------------+-----------------------------------------------------
IMO a better version:
cookies "foo" and "bar" are removed
if (req.http.Cookie) {
set req.http.Cookie = regsuball(req.http.Cookie, "(^|; )
*[foo|bar]=[^;]+;? *", "\1");
set req.http.Cookie = regsub(req.http.Cookie, "[; ]*$",
"");
if (req.http.Cookie == "") {
remove req.http.Cookie;
}
}
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/597>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list