Forum Discussion

David_M's avatar
David_M
Icon for Cirrostratus rankCirrostratus
Mar 11, 2022

Remove cookies based on hostname from http response.. possible?

So this is one of those single vs with multiple pools all done by irules but we are using cookie persistence profile on the vs.

Can we remove the extra cookies or maybe just leave the bigip cookie and remove the rest so we have equal LB?

We are using RR for LB and want to remove the cookies for only one particular hostname/domain.

The magenta cookie comes from our persistence profile, the other 2 I guess being from the servers?

 

 

1 Reply

  • Hello David, copy-pasting the response I gave you in the other thread (sorry, I thought I was responding on this thread already and answering here is much more appropriate). 

     

    It's not clear to me what you're trying to achieve, if you just need to remove persistence cookie and always rely on pool LB selection method, there is "persist none" iRule instruction. 

    If you need to remove all cookies (why?) you can use my iRule, keep in mind this will delete persistence cookie as well. If you need to keep persist cookie, you can set it manually in the iRule with " persist cookie insert my_cookie_name "0d 00:00:00" " instruction and/or write some additional lines to save it & restore it after "cleanup cycle" is performed.