Forum Discussion
Joel_45259
Nimbostratus
Oct 03, 2007How to change active member in the pool without losing sessions?
Hello,
We have virtual server with 2 members in a pool where only other member at a time is active. When changing the active member, active sessions should still use the original member and the ne...
hoolio
Cirrostratus
Oct 03, 2007You're using a global variable, ::remove_lbsession to track when to delete the cookie. Global variables are accessible for all requests, so this may lead to trampling of the value and unexpected results. I'd suggest first changing the rule to use a local variable. I wouldn't use the RULE_INIT event at all. You can set a local copy of the variable in the HTTP_REQUEST event using 'set remove_lbsession 0' and then update it to 1 if the request is for the logout page.
If you're still seeing unexpected results, add logging in the HTTP_REQUEST event to see if the client is presenting the cookie after you've tried to expire it.
Aaron
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
