Forum Discussion
Steve_245
Dec 15, 2016Nimbostratus
Looking for Feedback/Efficiency on Cookie Removal
Background:
We have a homegrown portal that users log in to and then launch applications from. This portal injects a ridiculous number of cookies into the client. One or more of these cookies prevent...
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
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects