Hello

I'm using Drupal 7 with Varnish 2.1.5.

Varnish is running perfectly until now. I checked my cookies and saw that a new cookie appeared which isn't listed in my .VCL-file.

I use:
set req.http.Cookie = regsuball(req.http.Cookie, "Drupal.toolbar.collapsed=[^;]+(; )?", "");

The 'new' cookie is Drupal.tableDrag.showWeight.
Instead of adding this cookie in my config-file, how can I f.e. wipe all cookies starting with "Drupal."

(otherwise I guess when cookies like this show up in the nearby future, Varnish will working again)

Comments

zeip’s picture

This seemed to work for me:

set req.http.Cookie = regsuball(reg.http.Cookie, "(^|;\s*)(Drupal\.[a-zA-Z0-9\.]+)=[^;]*", "");

Actually I have a few other things combined to the same regexp (a few statistics services and has_js cookie), but that's the essential part for this problem.

misc’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing issues that had no activity the latest year, please re-open if the issues is still relevant.