<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello everyone,</div><div><br></div><div>I am having some issues with the VCL in Varnish 3.0.1. Below is the VCL configuration I used to remove unwanted cookies from our sites but after upgrading to Varnish 3.0.1 this will no longer compile. </div><div><br></div><div><br></div><div><div>  // Remove all cookies except the Drupal session cookie</div><div>  if (req.http.Cookie) {</div><div><b>    set req.http.Cookie = ";" req.http.Cookie;</b></div><div>    set req.http.Cookie = regsuball(req.http.Cookie, "; +", ";");</div><div>    set req.http.Cookie = regsuball(req.http.Cookie, ";(PHPSESSID)=", "; \1=");</div><div>    set req.http.Cookie = regsuball(req.http.Cookie, ";(SESS[0-9a-f]{32,32})=", "; \1=");</div><div>    set req.http.Cookie = regsuball(req.http.Cookie, ";[^ ][^;]*", "");</div><div>    set req.http.Cookie = regsuball(req.http.Cookie, "^[; ]+|[; ]+$", "");</div><div><br></div><div>    if (req.http.Cookie == "") {</div><div>      remove req.http.Cookie;</div><div>    }</div></div><div>}</div><div><br></div><div><br></div><div>Here is the error from the compile:</div><div><br></div><div><div>Message from VCC-compiler:</div><div>Expected ';' got 'req.http.Cookie'</div><div>(program line 174), at</div><div>('input' Line 24 Pos 31)</div><div>    set req.http.Cookie = ";" req.http.Cookie;</div><div>------------------------------###############-</div><div><br></div><div>Running VCC-compiler failed, exit 1</div><div>VCL compilation failed</div></div><div><br></div><div><br></div><div>Is there a fix for this configuration? </div><div><br></div><div>Any insight would be much appreciated.</div><div><br></div><div>Thanks,</div><div>Kevin</div><div><br></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>__________________<br class="Apple-interchange-newline">Kevin Pettijohn</div><div>Operations & IT</div><div><br></div><div><br></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></body></html>