Forum Discussion

jan_de_wachter_'s avatar
jan_de_wachter_
Icon for Nimbostratus rankNimbostratus
Oct 21, 2016

Persistence sessions based on HTTP-HEADER

We should convert an ace application to F5. In ace we do define sticky session based on a HTTP-HEADER (LBID) created by the client application. The information delivered by that additional HTTP header is used as persistence information:

 

sticky http-header lbid A1166-psm_8080_STICKY

 

serverfarm A1166-psm_8080 backup A1166-psm_SORRY-FARM

 

replicate sticky

 

How can we define this in F5 - I can't find a proper profile to define this.

 

Thanks

 

1 Reply

  • Try something like this..

    when HTTP_REQUEST {
      if { [HTTP::header exists "LBID"] } {
        persist uie [HTTP::header "LBID"]
      }
    }
    

    -Jinshu