I am trying to use a similar rule to persist to weblogic servers based on the jsession id; here is my rule
when HTTP_RESPONSE {
set key [HTTP::cookie "JSESSIONID"]
set value [IP::server_addr]:[TCP::server_port]
if {$key != ""} {
log local0. "Adding jsess of: $key, value of: $value"
session add uie $key $value
set value2 [session lookup uie $key]
log local0. "Re-looking up key: $key, provides value: $value2"
}
}
when HTTP_REQUEST {
set jsess [findstr [HTTP::uri] "jsessionid" 11 ;]
log local0. "Entering REQUEST, jsess is: $jsess"
if { $jsess != "" } {
set server [session lookup uie $jsess]
log local0. "Server IP is: $server"
if { $server != "" } {
pool pool_weblogic_pool_http member $server
}
}
}
I am having an issue where I am consistenly presented with a "We're sorry but your session has timed out" error presented by the app/web server
here is what my ltm log says
***** BEGIN LOG*********************
Nov 5 13:57:09 tmm tmm[16895]: Rule rule_jsession_persistence-2 : Entering REQUEST, jsess is:
Nov 5 13:57:09 tmm tmm[16895]: Rule rule_jsession_persistence-2 : Entering REQUEST, jsess is:
Nov 5 13:57:09 tmm tmm[16895]: Rule rule_jsession_persistence-2 : Adding jsess of: CgVcFTBSfrKkbxP14
6B2wv5jfGSxtcRvGsv9rz6DcFlhvg9s11lk!-267782270, value of: 10.1.1.22:11080
Nov 5 13:57:09 tmm tmm[16895]: Rule rule_jsession_persistence-2 : Re-looking up key: CgVcFTBSfrKkbxP
146B2wv5jfGSxtcRvGsv9rz6DcFlhvg9s11lk!-267782270, provides value: 10.1.1.22:11080
***** END LOG*********************
Can someone help be figure out what I am missing here?