Forum Discussion
amebiz_142234
Nimbostratus
May 23, 2018irule pool selection based on cookie value
Hi, Cookie value: LocaleInformation:COUNTRYHAWKCODE%3DAT%7CJAVACOUNTRYCODE%3DAT%7CUSERSHOPLANGUAGE%3Dde%7C
LocaleInformation:COUNTRYHAWKCODE%3DAT%7CJAVACOUNTRYCODE%3DBE%7CUSERSHOPLANGUAGE%3D...
youssef1
Cumulonimbus
May 23, 2018Hi,
you can already try this:
when HTTP_REQUEST {
if { [HTTP::cookie exists "LocaleInformation"] and [HTTP::cookie value "LocaleInformation"] contains "JAVACOUNTRYCODE%3DBE%7" }{
pool AAA
} elseif { [HTTP::cookie exists "LocaleInformation"] and [HTTP::cookie value "LocaleInformation"] contains "JAVACOUNTRYCODE%3DAT%7" }{
pool BBB
} else {
pool default
}
}
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