Allow beresp to set only certain cookies

Shibashish shib4u at gmail.com
Wed May 4 11:45:07 CEST 2011


(allow only cookes named like fbs_,_twitter_sess,tt,tsk and remove all other
cookies)

in vcl_recv....

  if (!req.http.Cookie ~ "fbs_|_twitter_sess|tt|tsk")
 {
    unset req.http.Cookie;
  }

in vcl_fetch...

  if (!beresp.http.set-Cookie ~ "fbs_|_twitter_sess|tt|tsk")
 {
    unset beresp.http.set-Cookie;
  }



ShiB.
while ( ! ( succeed = try() ) );


On Tue, May 3, 2011 at 6:44 PM, <cristian.baciu at softlandro.com> wrote:

> Hi,
>
>
>
> I want to allow  the backend to set only certain cookies  (in the same time
> I want to remove PHP session cookie).
>
> How can I do this?
>
>
>
> Kind Regards,
>
> Cristian
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> http://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110504/4c3ffbcc/attachment-0003.html>


More information about the varnish-misc mailing list