Forum Discussion
MYLK
Nimbostratus
Dec 01, 2011Http header based persistence
Hello,
I have the following setup to enable persistence on incoming http requests.
when HTTP_REQUEST { persist hash [HTTP::header "Y-ABC-UserID"] }
The goals is to to have a user who's user id is appended as such
"Y-ABC-UserID:"
always persist to the node on which their connection orignally establishes based on the rules of the pool. It is not working correctly and the users session bounces back and forth across the pool.
Any one with any thoughts? all suggestions are great appreciated
Cheers
3 Replies
- Patrick_Chang_7Historic F5 AccountYou must also have a persistence profile specified in the virtual server.
- Michael_Yates
Nimbostratus
Hi MK,
Perhaps you should try using "persist uie" instead of persist hash.
Something like:when HTTP_REQUEST { if { [HTTP::header exists "Y-ABC-UserID"] } { persist uie [HTTP::header "Y-ABC-UserID"] } }
iRules: "persist" v. "persist add"
Irule for Universal Persistance Using a Header Value
Hope this helps. - nitass
Employee
just curious who generates Y-ABC-UserID header. is it client?
if so, does it send the header on every request?
can you post the full irule?
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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