diff --git a/app/code/community/Nexcessnet/Turpentine/misc/version-2.vcl b/app/code/community/Nexcessnet/Turpentine/misc/version-2.vcl index 2223bedbc..ddd7214aa 100644 --- a/app/code/community/Nexcessnet/Turpentine/misc/version-2.vcl +++ b/app/code/community/Nexcessnet/Turpentine/misc/version-2.vcl @@ -280,6 +280,9 @@ sub vcl_hash { if (req.http.X-Varnish-Esi-Access == "private" && req.http.Cookie ~ "frontend=") { set req.hash += regsub(req.http.Cookie, "^.*?frontend=([^;]*);*.*$", "\1"); + if (req.http.Cookie ~ "frontend_cid=") { + set req.hash += regsub(req.http.Cookie, "^.*?frontend_cid=([^;]*);*.*$", "\1"); + } {{advanced_session_validation}} } diff --git a/app/code/community/Nexcessnet/Turpentine/misc/version-3.vcl b/app/code/community/Nexcessnet/Turpentine/misc/version-3.vcl index a391f2d8d..525025cbf 100644 --- a/app/code/community/Nexcessnet/Turpentine/misc/version-3.vcl +++ b/app/code/community/Nexcessnet/Turpentine/misc/version-3.vcl @@ -282,6 +282,9 @@ sub vcl_hash { if (req.http.X-Varnish-Esi-Access == "private" && req.http.Cookie ~ "frontend=") { hash_data(regsub(req.http.Cookie, "^.*?frontend=([^;]*);*.*$", "\1")); + if (req.http.Cookie ~ "frontend_cid=") { + hash_data(regsub(req.http.Cookie, "^.*?frontend_cid=([^;]*);*.*$", "\1")); + } {{advanced_session_validation}} } diff --git a/app/code/community/Nexcessnet/Turpentine/misc/version-4.vcl b/app/code/community/Nexcessnet/Turpentine/misc/version-4.vcl index 470183f62..626d72419 100644 --- a/app/code/community/Nexcessnet/Turpentine/misc/version-4.vcl +++ b/app/code/community/Nexcessnet/Turpentine/misc/version-4.vcl @@ -302,10 +302,13 @@ sub vcl_hash { req.http.Cookie ~ "frontend=") { std.log("hash_data - frontned cookie: " + regsub(req.http.Cookie, "^.*?frontend=([^;]*);*.*$", "\1")); hash_data(regsub(req.http.Cookie, "^.*?frontend=([^;]*);*.*$", "\1")); + if (req.http.Cookie ~ "frontend_cid=") { + std.log("hash_data - frontend_cid cookie: " + regsub(req.http.Cookie, "^.*?frontend_cid=([^;]*);*.*$", "\1")); + hash_data(regsub(req.http.Cookie, "^.*?frontend_cid=([^;]*);*.*$", "\1")); + } {{advanced_session_validation}} - } - + if (req.http.X-Varnish-Esi-Access == "customer_group" && req.http.Cookie ~ "customer_group=") { hash_data(regsub(req.http.Cookie, "^.*?customer_group=([^;]*);*.*$", "\1"));