Forum Discussion

nitin_paytm_341's avatar
nitin_paytm_341
Icon for Nimbostratus rankNimbostratus
Nov 24, 2017

Removing cookie from specific set of IP pool and allow for other.

HI All

 

How we can configure an irule to remove cookie from specific set of IP pool and allow for the rest.

 

1 Reply

  • Put the IP addresses for the pools in a datagroup and remove the cookie if it exists in HTTP_RESPONSE:

    when HTTP_RESPONSE {
        if {[class match [IP::server_addr] equals pool_datagroup]} {
            if {[HTTP::cookie exists "myCookie"]} {
                HTTP::cookie remove "myCookie"
            }    
        }
    }