Forum Discussion
fuatd_30923
May 20, 2011Nimbostratus
Hi,
Below is the iRule Aaron.
In fact group priority is not a solution to my problem, because if i use group priority, 4 servers will not be active at the same time.
when HTTP_REQUEST {
if { [HTTP::cookie "BSESSIONID"] ne ""} {
persist uie [string tolower [HTTP::cookie "BSESSIONID"]]
}
else {
set bsess [findstr [string tolower [HTTP::path]] "bsessionid=" 11 ""]
if { $bsess != ""} {
persist uie $bsess
}
}
}
when HTTP_RESPONSE {
if {[HTTP::cookie "BSESSIONID"] ne ""} {
persist add uie [string tolower [HTTP::cookie "BSESSIONID"]]
}
}