Forum Discussion
Mike_Young_6152
Nimbostratus
Jan 17, 2013iRule for selecting a pool based on a cookie value not working
I need to redirect traffic based on a cookie.
when HTTP_REQUEST {
if{([HTTP::cookie exists "asv"]) and ([HTTP::cookie value "asv"] eq "1" )}{
pool web_new_version_pool
} ...
giltjr
Nimbostratus
Jan 17, 2013I'm not sure what is going on, but I think you have made some assumptions in your iRule that may not valid.
On the 1st HTTP_REQUEST there should be NO cookie asv, so everything should end up getting assigned to pool "foo" to start.
The 1st response from the server should set the cookie asv.
So by the time the cookie is set, the pool has been assigned and things could be getting messed up from there.
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