Forum Discussion
jamesdris
Nimbostratus
Nov 02, 2015making changes to cookie
I have a VIP on which cookie persistence is enabled.
The cookie header contains a lot of other cookies that my browser passes. Is it possible to trim some of those cookies and pass only the desired o...
Henrik_Gyllkran
Nimbostratus
Nov 02, 2015Sure, it would look something like this, might be typos since I'm doing this from the top of my head:
when HTTP_REQUEST {
foreach c_name [HTTP::cookie names] {
if { !( [HTTP::cookie $c_name] eq "test-cookie" ) }{
HTTP::cookie remove $c_name
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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