Forum Discussion
dubdub
Nimbostratus
Sep 29, 2011Trigger action on source IP load balancing event?
Hi all,
I have a situation where I am using source address affinity with a one-hour expiration that is working very well. There is a new requirement, though, that when that timeout occurs, I need to blank out a couple of cookies for the application. These cookies do not have expiration dates that I can query; they are timed out deep within the application backend on a separate server. Is there a way in an iRule to determine when the source address timeout occurs so I can remove the cookies? I'm a little nervous at the idea of adding another persistence method when the current one is working well.
Thanks,
Jen
5 Replies
Sort By
- Michael_Yates
Nimbostratus
Hi dubdub, - hoolio
Cirrostratus
Can you describe why you need to remove the app cookies when the LTM persistence expires? Ideally you want the LTM persistence timeout to be slightly longer than the app timeout so the client always gets back to the same pool member during their session. Are you trying to force a shorter application timeout than what the app uses? - dubdub
Nimbostratus
Hi Aaron,when HTTP_REQUEST { if { [session lookup uie "[IP::client_addr]"] eq "" } { HTTP::cookie remove "first_cookie_name" HTTP::cookie remove "second_cookie_name" } }
- hoolio
Cirrostratus
Hi Jen, - dubdub
Nimbostratus
The rule is going through acceptance testing today, but it looks like it's working well so far. Thanks for all the help!
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects