Forum Discussion
amebiz_142234
Nimbostratus
May 25, 2018irule pool selection based on dynamic cookie value
Hi, my scenario: i want to select a pool based on a cookie value - that works as aspected when_HTTP_REQUEST {
if { [HTTP::cookie exists "myCookie"] } {
switch -glob [HTTP::cookie value "myCook...
amebiz_142234
Nimbostratus
Jun 04, 2018that works fine
when HTTP_REQUEST {
Check the requested URI
switch -glob [HTTP::uri] {
"/foo/*"
{
pool foo
persist cookie insert foo 0
}
default {
pool bar
persist cookie insert bar 0
}
}
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
