For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

sinu1_149558's avatar
sinu1_149558
Icon for Nimbostratus rankNimbostratus
Apr 02, 2014

How to create JSESSION based persistence ? in V10 box

How to create JSESSION based persistence ?

 

1 Reply

  • Use a universal persistance profile with the following irule Set the persistence timeout in the universal profile:

    rule jsess-cookie-uie-persist.ir {
       when CLIENT_ACCEPTED {
        set add_persist 1
    }
    
    when HTTP_RESPONSE {
        if { [HTTP::cookie exists "JSESSIONID"] and $add_persist } {
            persist add uie [HTTP::cookie "JSESSIONID"]
            set add_persist 0
        }
    }
    
    when HTTP_REQUEST {
        if { [HTTP::cookie exists "JSESSIONID"] } {
            persist uie [HTTP::cookie "JSESSIONID"]
        }
    }
    }
    

    when HTTP_RESPONSE { if { [HTTP::cookie exists "JSESSIONID"] and $add_persist } { persist add uie [HTTP::cookie "JSESSIONID"] set add_persist 0 } }

    when HTTP_REQUEST { if { [HTTP::cookie exists "JSESSIONID"] } { persist uie [HTTP::cookie "JSESSIONID"] } } } `