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
} ...
Mike_Young_6152
Nimbostratus
Jan 17, 2013Well I think I found most of the problem was just whitespace... gets me everytime. To answer your question I don't have acces to the logs.
when HTTP_REQUEST {
if { [HTTP::cookie exists "asv"] and [HTTP::cookie value "asv"] eq "2" }{
pool web_new_version_pool
} else {
pool web_pool
}
}
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