thunderbird_920
Jul 15, 2011Nimbostratus
Cookies persistency
I am using cookies to maintain the persistency for user to the web servers. The cookies was created by the web server. Below is the irule for the cookies persistency.
when HTTP_RESPONSE {
if { [HTTP::cookie exists "servercookie"] } {
persist add uie [HTTP::cookie "servercookie"]
}
}
when HTTP_REQUEST {
if { [HTTP::cookie exists "servercookie"] } {
persist uie [HTTP::cookie "servercookie"]
}
}
The problem that I encounter here is the user will be not directed to other web servers if the current web server that he connected is down because the persistency for that current server is still there. I have 4 web servers and the load balancing method is using Round Robin.
Can i modify irule to redicrect the traffic to other web servers? Give show me example?