Forum Discussion

BaltoStar_12467's avatar
Jun 30, 2014

BIG-IP : irule check cookie for value

f5 BIG-IP LTM VE v11.4.0 on ESXi

 

In an iRule , how to check that a request contains a specific cookie exists with a certain value ?

 

My iRule has conditional logic that should branch as a function of the value of a certain named cookie.

 

Example: if cookie "ab-test" has value "a" then route to pool-test-a , if "b" then route to pool-test-b , otherwise route to pool-primary

 

1 Reply

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    Check out this post for an example from Kevin.

     

    https://devcentral.f5.com/questions/parse-cookie-content-company-code-to-specific-pools