Forum Discussion
JCMATTOS_41723
Apr 25, 2013Nimbostratus
So 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 }
}
}