Forum Discussion
lanceleroux_533
Nimbostratus
Sep 04, 2008JSessionID URI Persist
I have created an IRULE to do URI JSessionID balancing for the application only (/mosAppWar)
So far our server and LTM logs indicate that this is not being respected.
...
Nicolas_Menant
Employee
Sep 05, 2008You're right, since findstr doesn't find your jsessionid, it returns everything
matches_regex is CPU expensive it may be best to try something like this:
when HTTP_REQUEST {
if { ([HTTP::uri] contains "/mosAppWar") and ([HTTP::uri] contains "jsessionid") } {
set jsess [findstr [HTTP::uri] "jsessionid" 11 ";"]
if { $jsess ne "" } {
log local0. "creating persistency with $jsess"
persist uie $jsess
}
pool Application_Pool
log local0. "QA2 Server: [LB::server addr] jsessionid $jsess Query: [HTTP::uri][HTTP::query]"
return
} else {
pool Static_Pool
return
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects