Forum Discussion
Session persistence based on http header for machine to machine calls
- Dec 16, 2022
Awesome!
Thank-you very much for your help!
I think you could be able to achieve this with cookie passive persistence
Otherwise, you can script an iRule that does this, with universal persistence profile
when HTTP_REQUEST {
if {[HTTP::header exists "Your header here"]}{
if {[HTTP::header "your header here"] ne ""}{ persist add uie [HTTP::header "Your header here"] }
}
}
I haven't tested this script, please do before installing
Hi,
Thank-you very much for your quick reply.
One last thing that I want to confirm: the fact the the requests(with same msg id) will come from different api gw nodes(with different IPs) shouldn't matter right? There is no requirement to have same source ip sending the requests to the LB, the LB should be able to figure out the destination node just by using the msg id from the header?
Thanks!
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