Bryce_Halkerst1
Mar 25, 2013Nimbostratus
Jsession cookie insert TCL error
All,
Notice that I am getting a ton of TCL error messages on the F5's. I seen in the past that this can cause resource issues. I see that the irule works, but just not sure of this TCL error.
Thanks,
Bryce
Error Message
TCL error: /Common/Cookie_JSESSIONID - Prerequisite operation not in progress (line 4) (line 4) invoked from within "persist add uie [string tolower [HTTP::cookie "JSESSIONID"]] 3600"
irule
when HTTP_REQUEST {
Check if there is a JSESSIONID cookie
if { [HTTP::cookie "JSESSIONID"] ne "" } {
Persist off of the cookie value with a timeout of 1 hour (3600 seconds)
persist uie [string tolower [HTTP::cookie "JSESSIONID"]] 3600
} else {
Parse the jsessionid from the path: ex: /path/to/file.ext;jsessionid=1234?param=value
set jsess [findstr [string tolower [HTTP::path]] "jsessionid=" 11]
Use the jsessionid from the path for persisting with a timeout of 1 hour (3600 seconds)
if { $jsess != "" } {
persist uie $jsess 3600
}
}
}