Forum Discussion
JPL_55483
Nov 08, 2011Nimbostratus
Another way to do it could be creating a new persistence profile based on cookie persist and associate that new profile to the irule via persist command?
Example:
profile persist my_cookie_persist_profile {
defaults from cookie
mode cookie
cookie mode insert
cookie name "XPTO_A"
cookie expiration 0:04:00
override connection limit disable
}
and then in the irule:
when HTTP_REQUEST {
set http_host_value [string tolower [HTTP::host]]
if {$http_host_value eq "xptoA.com"}
{
persist my_cookie_persist_profile
pool poolA
}
}