You might also consider inserting the jsession ID into a custom HTTP header rather than tacking it on to the end of the URI. In any case, have a look at the following:
http://devcentral.f5.com/wiki/default.aspx/iRules/Weblogic_JSessionID_Persistence.html.
A method for persisting on jsessionids that are set in cookies could be as simple as:
when HTTP_REQUEST {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist uie [HTTP::cookie "JSESSIONID"]
}
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist add uie [HTTP::cookie "JSESSIONID"]
}
}
You'd need to grab the value of the cookie and append it to the URI in a way that would make sense to your apps (a name-value pair in a query string, I'm guessing?)
JQ