This is an example for JSession ID based persistence for Brocade ADX:
csw-rule "JSESSION" header "cookie" pattern "JSESSIONID=" case-insensitive
csw-rule "URI" url pattern "JSESSIONID=" case-insensitive
csw-policy "CSW_JSESSION" case-insensitive
match "JSESSION" persist offset 0 length 32 passive-persist
match "URI" persist offset 0 length 32 passive-persist
default forward 1
In the above policy, the persistence decision is made based on the first 33 characters (0-32) of the JSession ID. If this number has to be different, we would have to alter the CSW Policy to reflect the right number of characters. The csw-policy “CSW_JSESSION” would have to be utilized within the Virtual Server.