Forum Discussion
Kannan_Thalaia1
Cirrus
Nov 13, 2015Irule for pool selection base on cookie presence
Hello,
I wish to do pool selection base on cookie presence.
The logic is simple, if any http request come with a specific cookie ( like JSESSIONID) it need to go to a pool, otherwise it ne...
Brad_Parker
Cirrus
Nov 13, 2015If you are looking to choose a pool juts on the presence of a cookie this should do the trick. It will require an HTTP profile. If your app is HTTPS it will also require a client SSL profile:
when HTTP_REQUEST {
if {[HTTP::cookie exists "JSESSIONID"]}{
pool poolA
}
else {
pool poolB
}
}
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