Forum Discussion
mistergreg_6218
Nimbostratus
Apr 20, 2011iRule persistance based on HTTP header
I'm new to the F5 and am trying to persist HTTP requests based on an HTTP header. Basically, we have a custom app that is sending HTTP requests with a particular HTTP header that identifies the "devi...
mistergreg_6218
Nimbostratus
Apr 26, 2011Aaron,
Seems like I should be able to get the equivalent of what I intended by choosing None for the fallback persistence profile and then updating the rule to this:
when HTTP_REQUEST {
if { [HTTP::header exists "X-DeviceKey"] } {
persist uie [HTTP::header "X-DeviceKey"]
}
else {
persist source_addr
}
}
This appears to be working for me now.
Thanks for all your help.
--Greg
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