Forum Discussion
Hello David, syntax-wise it will work; however consider that this will mean cookies will be dropped every time since iRule is executed at every request hit.
If you need "fresh" cookies to be generated and kept in next requests, you might want to consider injecting some cookie yourself, that will allow you to ignore the "cookie drop" on next requests.
I didn't need this in my scenario, since I was only concerned about a very specific HREF call.
Also, check the Set-Cookie instruction in response release event too, it might require tuning.
This is my post where i want to delete cookies based on domain name . .any thoughts??
- CA_ValliMar 16, 2022MVP
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.
- David_MMar 17, 2022Cirrostratus
this is just a design thing with 3 domains on a single VS and now they 90% traffic hitting just one of the pool members, so they want to remove persistence for one of the domains only ..
so i guess persist none should do it, right?
never knew about it, thanks.. ill try it out.