Forum Discussion
JCMATTOS_41723
Nimbostratus
Apr 16, 2013parse cookie content company code to specific pools?
We require a special iRule to parse the cookie for company codes and direct them to a specific pool. For example each client will have an unencrypted cookie that will contain a unique company code ie...
JCMATTOS_41723
Nimbostratus
Apr 25, 2013So after digging into this more. Looks like the initial client request doesn't receive the cookie until successful login. Once the successful login the cookie is issued corresponding to a user to a unique company code. After testing this irule it seems to be inconsistent and not working properly, is it because of the cookie not being in the initial request? Is there a way to get this to work under these circumstances?
when HTTP_REQUEST {
switch [HTTP::cookie "UserInfo"] {
"COMPANYID=A1" {
log local0. " matched COMPANYID=A1 in cookie UserInfo "
pool DEV-POOL1-80 }
"COMPANYID=B1" {
log local0. " matched COMPANYID=B1 in cookie UserInfo "
pool DEV-POOL2-80 }
"COMPANYID=C1" {
log local0. " matched COMPANYID=C1 in cookie UserInfo "
pool DEV-POOL3-80 }
}
}
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