Forum Discussion
William_Wright_
Nimbostratus
Dec 19, 2005Basic cookie session iRule
I need to create a basic iRule that keeps persistence based on JSESSION and load balances accordingly otherwise. I have tried all the standard persistence methods but it always goes back to defaulting...
Colin_Walker_12
Dec 20, 2005Historic F5 Account
Here's a simplified version of the rule given in this thread Click here
when HTTP_REQUEST {
set jsess [findstr [HTTP::uri] "jsessionid" 11 ";"]
if { $jsess != "" } {
persist uie $jsess
}
}This should enable persistence based on the jsessionid in the uri, assuming it matches the format the findstr command in this example is looking for ( jsessionid=x...y; ).
-Colin