Eric_Waite_1046
Jan 11, 2007Nimbostratus
iRule help
I am having the same problem with persistence on the following iRules.... I am currently using the first of the two.
The application I am working on is an applet program. The applet sessions on the server timeout in 60 minutes. For some reason, sometimes one of my reqests does not stick, and it is persisted to the wrong server. This causes my applet application to Have a SessionExpired exception.
I am working with f5 customer support and they have not come up with anything in the TCPdumps yet.
Is the following the correct way to set to > 60 minutes for the entry to stay in the persistence table ...?
Does anyone have any thoughts or suggestions, I am really stuck.
Thanks in advance...
- Eric
when HTTP_RESPONSE {
log ""
log ""
log "RESPONSE"
if { [HTTP::cookie exists "JID"] } {
set resPers [HTTP::cookie "JID"]
log "lookup for $resPers in table = >[persist lookup uie $resPers]<"
if { [persist lookup uie $resPers] equals "" } {
persist add uie $resPers 3700
log "added response entry *$resPers* for server [LB::server addr]"
} else {
log "continued sessionId *$resPers* for server [LB::server addr]"
}
}
}
when HTTP_REQUEST {
log "1 REQUEST: [HTTP::uri]"
set jsess [findstr [HTTP::uri] "jsessionid" 11 "?"]
log "2 $jsess"
if { $jsess != "" } {
persist uie $jsess 3700
log "used URI value is *$jsess*, FOUND->[persist lookup uie $jsess]"
}
}