Mike_Young_6152
Jan 17, 2013Nimbostratus
iRule for selecting a pool based on a cookie value not working
I need to redirect traffic based on a cookie.
when HTTP_REQUEST {
if{([HTTP::cookie exists "asv"]) and ([HTTP::cookie value "asv"] eq "1" )}{
pool web_new_version_pool
}
else{
pool web_pool
}
}
The cookie should contain a number like asv=1
By the science of deduction I narrowed it down to the and ([HTTP::cookie value "asv"] eq "1" ) part but I just can't see what is wrong with the syntax.
Any ideas would be greatly appreciated.