Forum Discussion
Is there a way to use a query string parameter to override sticky sessions?
We have an application behind an F5 that is using IP based sticky sessions and would like to know if it is possible to configure an override to direct specific users to force the affinity.
The issue is that when they get disconnected from VPN and sometimes reboot they are directed to another server upon return. Since they already had activity loaded on the previous server, this causes issues.
Is there any way to configure it so the application servers can force a redirect with a parameter instruction telling the F5 which pool server to use for them and override the current affinity? We could redirect them to the specific server directly but that is not ideal.
3 Replies
- What_Lies_Bene1
Cirrostratus
Is this HTTP traffic? If so it may be better to use Cookie persistence and use source address as a backup only.
- What_Lies_Bene1
Cirrostratus
You can't configure a rolling life but you can set a lifetime (say 8hrs) and this should survive a reboot as long as the browser isn't configured to clear all cookies on close.
If you really need something more sophisticated it's probably 'iRules Time(tm)'.
- What_Lies_Bene1
Cirrostratus
Sorry, I was trying to be humorous. What I meant was you could use iRules to meet your needs. Considering what you are looking for I wouldn't want to even try and code such a rule but it's certainly possible.
See here for an introduction to iRules: https://devcentral.f5.com/articles/-the101-irules-101-introduction-to-programming-amp-tcl.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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