F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

F5-Toronto_1388's avatar
F5-Toronto_1388
Icon for Nimbostratus rankNimbostratus
Jan 29, 2014

(Custom Persistence) Extracting string from application data and using it for persistence

Hello All:

 

In the application data we have tokens and I would like to switch from SSL Persistence to Token based persistence as Token are assigned by a unique pool member in a pool.

 

Would something like below be possible to achieve using irules

 

  1. Search for Token issued by Server after the TCP handshake to the client
  2. Persist using this token for current and any subsequent connections

The token is inside a SOAP call, which is SSL encrypted. We will offload both client and server Certs to F5 and then plan on using the above method where we search for token, and use the token for persistence to ensure any current and subsequent connection is persisted to a Node that issued the toke.

 

Are there any example irules that i can look at to see how i would search for the token and then use it for persistence.

 

Thank you and best regards

 

1 Reply

  • is the token in HTTP header or in xml payload only?

     

    if in header it's easier to grab, otherwise you need to parse the payload using a collect method...

     

    cheers