AW: Remove PHPSESSID from Header

Alexander Diedler adiedler at tecracer.de
Thu Jan 31 10:23:49 CET 2013


Hello,
This https://www.varnish-cache.org/trac/wiki/VCLExampleRemovingSomeCookies does not work or
all my other examples in the default.vcl

#       set req.http.cookie = regsub(req.http.cookie, "(; )?PHPSESSID=[^;]+", "");
#       if (req.http.cookie ~ "^ *$") {
#               remove req.http.cookie;
#       }
#
#       if (req.http.Cookie) {
#         set req.http.Cookie = regsuball(req.http.Cookie, "(^|; ) *__utm.=[^;]+;? *", "\1"); # removes all cookies named __utm? (utma, utmb...) - tracking thing
#
#           if (req.http.Cookie == "") {
#               remove req.http.Cookie;
#           }
#       }

#       if (req.http.Cookie ~ "PHPSESSID")
#       {
#               remove req.http.Cookie;
#       }

We need urgent help, the production system take down if the frontned servers are overload+

Best regards
Alexander


Von: Dag Haavi Finstad [mailto:daghf at varnish-software.com]
Gesendet: Mittwoch, 30. Januar 2013 16:47
An: Alexander Diedler
Cc: varnish-misc at varnish-cache.org
Betreff: Re: Remove PHPSESSID from Header


On Wed, Jan 30, 2013 at 3:44 PM, Alexander Diedler <adiedler at tecracer.de<mailto:adiedler at tecracer.de>> wrote:
Hello,
How Can I remove the Cookie PHPSESSID from header send by client in Varnish 3.0.3?

Hi there
There are examples for this on the wiki. Please see https://www.varnish-cache.org/trac/wiki/VCLExampleRemovingSomeCookies


--
[http://www.varnish-software.com/static/media/logo-email.png]<http://www.varnish-software.com>

Dag Haavi Finstad
Developer | Varnish Software AS
Phone: +47 21 98 92 60
We Make Websites Fly!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130131/8f8e1b2b/attachment.html>


More information about the varnish-misc mailing list