Forum Discussion
VinodM_322332
Nimbostratus
May 30, 2017iRule for routing request when multiple cookies are present
I am really a novice with F5 and hence this question. We have an application for which the client sends multiple (two) cookies from which we need F5 to route based on the first one instead of the sec...
Anesh
Cirrostratus
May 30, 2017Try the below:
when HTTP_REQUEST {
log local0. "Cookie: [HTTP::cookie value "JSESSIONID"]"
if { [HTTP::cookie value "JSESSIONID"] ne "" }{
switch [HTTP::cookie value "JSESSIONID"] {
"4C07E6A52AA31DABD0E8F64EB87C1C3E.node1" {
node node-A
log local0. "using node-A"
}
"3B51D3CE40727431ECC23A44080340F6.node2" {
node node-B
log local0. "using node-B"
}
}
}
}
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
