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

Try something like this..

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

-Jinshu