On Wed, Mar 28, 2012 at 8:25 PM, James Light <span dir="ltr"><<a href="mailto:j.gareth.light@gmail.com">j.gareth.light@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What you asked was how to remove every *other* cookie *except* PHPSESSID.<br>
<br>
There is an example of how to do that on the varnish site here:<br>
<a href="https://www.varnish-cache.org/docs/3.0/tutorial/cookies.html" target="_blank">https://www.varnish-cache.org/docs/3.0/tutorial/cookies.html</a><br>
<br>
Personally, I prefer a different way, which amounts to:<br>
* extract the PHPSESSID into a different header<br>
* unset the entire Cookie Header<br>
* add back only the PHPSESSID as the Cookie header<br></blockquote><div><br></div><div><br></div><div>Thats quite a neat way to do it. Could you send me the VCL for this? It might be a good example for the docs. The current example is rather horrid.</div>
<div><br></div><div><br></div></div>-- <br><img src="http://www.varnish-software.com/sites/default/files/varnishsoft_white_190x47.png"><div>Per Buer<br>Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer<br>
<i>Varnish makes websites fly!</i><div><a href="http://www.varnish-software.com/whitepapers" target="_blank">Whitepapers</a> | <a href="http://www.youtube.com/watch?v=x7t2Sp174eI" target="_blank">Video</a> | <a href="https://twitter.com/varnishsoftware" target="_blank">Twitter</a> <br>
<br></div></div><br>