Forum Discussion
bl0ndie_127134
May 31, 2005Historic F5 Account
Julian, HTTP::uri command can only be executed from client side events and HTTP_RESPONSE doesn't happen to be one of them. Looks like the validation check did not detect this and I will open a CR48746 to ensure that this gets caught in the future. In the mean time, I have included a modified version of the rule that should get you up and running.
when HTTP_REQUEST {
set uri [HTTP::uri]
set jsess [findstr $uri "jsessionid" 13 ")"]
log local0. "Entering REQUEST, jsess is: $jsess"
if { $jsess != "" } {
persist uie $jsess
}
}
when HTTP_RESPONSE {
if { [findstr $uri "jsessionid"] } {
set jsess1 [findstr $uri "jsessionid" 13 ")"]
log local0. "jsessionid found, jsess is: $jsess1"
persist add uie $jsess1
}
}