Forum Discussion
PeteWhite
Dec 22, 2016Employee
How about if you use a datagroup that has the Host header, or URI as data and a list of cookies to be removed. Match on host ( or URI ), retrieve list of cookies, loop through cookies and if matches list then remove cookie. URI-class: "/app1/user" => "cookie1;cookie2;cookie3"
eg
when HTTP_REQUEST
if match class URI-class
set cookies_remove [split $value ";"]
foreach cookie $cookies
if [lsearch $cookies_remove cookie]
HTTP::cookie remove $cookie
endif
endforeach
endif
endwhen