Toby_Penn_11283
Jun 23, 2006Nimbostratus
Session Timeout using jsession iRule
I'm using the following iRule to load balance and track my sessions (funky app, don't ask):
when CLIENT_ACCEPTED {
set add_persist 1
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JSESSIONID"] and $add_persist } {
persist add uie [HTTP::cookie "JSESSIONID"]
set add_persist 0
}
}
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
}
}
}
I need to extend the session timeout period beyond 5 minutes. Modifying the protocol profile does not seem to do the trick. I don't see anything in here that would indicate that there is a variable that I can tweak to get a longer session timeout. Anyone have any ideas??