nit8080_109161
Feb 01, 2008Nimbostratus
http_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 field under pool properties.
This was working great.
On the version 9 box, I tried to get this same type of persistence by using an iRule associated to a UIE profile, and associating that profile to the VIP. The iRule I tried is:
The symptoms of the failure were that user sessions were being switched back and forth between the pool members instead of staying on the original server they were connected to. I have run a tcpdump and verified that the Authorization header is present. At this time we’re just using simple IP source persistence, but this could soon become a problem as a lot of users go through proxies and appear to come from the same IP.
when HTTP_REQUEST {
set authorization_id [HTTP::header value "Authorization"]
persist uie $authorization_id
}