I am now using the following and the persistenc edoes not allways hold, its almost as if the table is removing the entry on BIG_IP.
BTW could the "?" be throwing it off, I want to parse up until there is a ? in the URL. To handle passed in request vars.
Why do you use "!" in your parsing of jsessionid?
- Eric
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JID"] } {
set resPers [HTTP::cookie "JID"]
if { [persist lookup uie $resPers] equals "" } {
session add uie $resPers [IP::server_addr] 3700
}
}
}
when HTTP_REQUEST {
set jsess [findstr [HTTP::uri] "jsessionid" 11 "?"]
if { $jsess != "" } {
pool test_pool member [session lookup uie [findstr [HTTP::uri] "jsessionid" 11 "?"] ]
} else {
pool test_pool
}
}