Forum Discussion
Peter_Chase_150
Sep 13, 2005Nimbostratus
Expire Persistence Cookie
Because of application design we have active cookie persistence set up to make sure each user stays on a particular server in a pool. There are particular times in the application that users would be able to move from one server to the other without impacting their experience. My question is does anyone know of a way to expire the cookie used to maintain this persistance for particular URLs in an iRule so that when we remove a server from a pool they will eventually move to the other server. Note that we do not have a timeout value set for the persistence cookie. If there are any other ways of doing the persistence that doesn't involved modifying the application please let me know.
Thanks.
-Pete
- Martin_MachacekHistoric F5 AccountPete,
pool primary { persist cookie cookie_mode insert cookie_name primaryCookie cookie_expiration 00:30:00 member 10.1.21.2:http member 10.1.21.3:http member 10.1.21.4:http } pool secondary { persist cookie cookie_mode insert cookie_name secondaryCookie cookie_expiration 00:30:00 member 10.1.21.2:http member 10.1.21.3:http member 10.1.21.4:http } rule cookie_selector { if((http_uri contains "/good_time_to_lb_again/" and exists http_cookie("primaryCookie")) or exists http_cookie("secondaryCookie")) { use pool secondary } else { use pool primary } }
- Peter_Chase_150NimbostratusI thought of doing something with the application that would expire the cookie. We may have to try that route. The reason we we don't have an expiration time for the cookie is that we didn't want it to expire in the middle of them using the application since it could cause major issues. We do have an session cookie that times out after 60 minutes and logs the user out. The way I understood the timeout for the BigIP cookie is that it doesn't reset when used, so if we set the timeout for 30 minutes and someone is constantly using the app for 30 minutes they would be re-loadbalanced and possibly moved to the other server. We're really just looking for a graceful way to get people to a different server. I appreciate your input and thanks for the quick response.
- Martin_MachacekHistoric F5 AccountPete,
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