Eric_Waite_1046
Oct 06, 2006Nimbostratus
jsessionid uri vs. cookie
I am using the following rule to persist via jsessionId.
when CLIENT_ACCEPTED {
set add_persist 1
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JID"] and $add_persist } {
persist add uie [HTTP::cookie "JID"]
set add_persist 0
}
}
when HTTP_REQUEST {
if { [HTTP::cookie exists "JID"] } {
persist uie [HTTP::cookie "JID"]
} else {
set jsess [findstr [HTTP::uri] "jsessionid" 11 "?"]
if { $jsess != "" } {
persist uie $jsess
}
}
}
But my application passes sessionId in the URI with every request so the following should work, with no response.
when HTTP_REQUEST {
set jsess [findstr [HTTP::uri] "jsessionid" 11 "?"]
if { $jsess != "" } {
persist uie $jsess
}
}
This works, if the browser set to block cookies. If it allows cookies the persistence fails? Does BIG-IP look for the cookie, if cookies are enables? Or Am I missing something here. I would love to eliminate cookies 100 percent and just pull from the URI.
Any help would be appreciated.
Eric