Forum Discussion
F5-Oetti
Nimbostratus
Mar 07, 2018How can it be solved to setup persistance based on a special cookie value?
Hello,
I got a request to check the value of a cookie named SeSSION-ID.
If the cookie value contains xxxxx or yyyyy the traffic should be forwarded to Server1.
In case the cookie value contains ...
Jinshu
Cirrus
Mar 07, 2018Create an irule something like this.
when HTTP_REQUEST {
if { [HTTP::cookie value "xxxxx"] or [HTTP::cookie value "yyyy"]} {
node 192.168.1.1 80
}
elseif { [HTTP::cookie value "wwww"] or [HTTP::cookie value "uuuuu"] } {
node 192.168.1.2 80
}
}
Please note, only members not marked down are considered in the matching.
-Jinshu
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