Forum Discussion
nit8080_109161
Nimbostratus
Feb 01, 2008http_header("Authorization")
I need the iRule to set persistence based on the “Authorization” value in the HTTP header. On the old version 4 box, I did this by just putting
http_header("Authorization") in the expression fi...
hoolio
Cirrostratus
Jun 24, 2009As Deb suggested it would make sense to use source address persistence as a fallback method. If you're still seeing issues, then I'd still suggest using the same troubleshooting steps:
To troubleshoot non-cookie persistence issues, you can check the persistence records via the GUI under Overview >> Statistics >> Persistence Records or via the CLI (using: watch -n1 'b persist all show all').
You can add logging to the iRule as well to get a better idea of what's happening:
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::port]: Request to [HTTP::host][HTTP::uri] had Auth header value: \
[HTTP::header value "Authorization"], with persistence record: [persist lookup uie [HTTP::header value "Authorization"]]"
if {[string length [HTTP::header value "Authorization"]]}{
persist uie [HTTP::header value "Authorization"]
}
}
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
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