Forum Discussion

Anish_5237's avatar
Anish_5237
Icon for Nimbostratus rankNimbostratus
Aug 05, 2008

iRule to match session across pools

Hi! We have 2 different pools hosting different applications and we are unable to match session state between the pools. Both pools are hosted under the same Virtual Host and the F5 redirects traffic to the other pool based on a certain URI parameter, which an iRule looks for on each Http_Request. We have been using HTTP cookie-insert method for persistence which works great as long as user stays on just one pool(application) and does not access the other pool(application). As soon as the user goes to the other app and comes back to the original one, the session gets lost.

 

 

Can one of you guru's please advise on the ideal persistence mechanism to use, when using multiple pools and be able to retain session affinity?

 

 

Regards,

 

Anish

 

1 Reply

  • Hi Anish,

     

     

    Deb gave two solutions in this post (Click here):

     

     

    If you configure cookie insert persistence without specifying a custom cookie name, the persistence cookies will be set with the pool name included in the cookie name.

     

     

    Or you can use the persist command (Click here) to specify a unique cookie name for each pool.

     

     

    Aaron