Forum Discussion

Jeff_Muzzy_4236's avatar
Jeff_Muzzy_4236
Icon for Nimbostratus rankNimbostratus
Nov 06, 2010

Jsession Persistance isn't working....

We have had this iRule working for about 1 week. Today persistance totally stopped working. We'd tail the log on F5 and watch a connection with the correct jsession id move onto the other web server in the pool.

 

 

Any ideas?

 

 

jeff

 

 

 

 

when HTTP_RESPONSE {

 

if { [HTTP::cookie exists "JSESSIONID"] } {

 

set jsess [HTTP::cookie "JSESSIONID"]

 

persist add uie $jsess 3600

 

 

log local0. "[IP::client_addr]:[TCP::client_port]: Added Persistence: $jsess [persist lookup uie $jsess]"

 

}

 

}

 

 

when HTTP_REQUEST {

 

set jsess [findstr [HTTP::uri] "jsessionid" 11 ";"]

 

 

JsessionID in path

 

if { $jsess != "" } {

 

persist uie $jsess

 

 

log local0. "[IP::client_addr]:[TCP::client_port]: Used persistence record from path: $jsess [persist lookup uie $jsess]"

 

 

}

 

 

JsessionID in cookie

 

if { [HTTP::cookie exists "JSESSIONID"] } {

 

set jsess [HTTP::cookie "JSESSIONID"]

 

 

if { $jsess != "" } {

 

persist uie $jsess

 

}

 

 

log local0. "[IP::client_addr]:[TCP::client_port]: Used persistence record from cookie: $jsess [persist lookup uie $jsess]"

 

}

 

 

}

 

  • Enable a one connect profile with a 255.255.255.255 mask if you haven't done so already.

     

     

    -Matt