ask_me_anytime_
Mar 16, 2009Nimbostratus
Cooikie JsessionID persistence and Cookie Hash Profile
hello,
I'm thinking of using Cookie Hash Profile of LTM instead of the below code.
has anybody ever used Cookie Hash Profile to replace a JsessionID persistence ??
any strange behavoir when you used the Cookie Hash Profile ??
thanks ..
below is the code.
rule WeblogicJSessionPersist {
when HTTP_REQUEST {
if { [HTTP::cookie exists "JSessionID"] } {
persist uie [HTTP::cookie "JSessionID"]
} else {
set jsess [findstr [HTTP::uri] "JSessionID" 11 ";"]
if { $jsess != "" } {
persist uie $jsess
}
}
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JSessionID"] } {
persist add uie [HTTP::cookie "JSessionID"]
}
}
}