Forum Discussion
ramesh_110176
Nimbostratus
Jan 08, 2009Need a Simple iRule
HI
I am new to iRules and have a need to check the content of a cookied, if it matches then I need to send to a pool if not re-direct it to a sorry page. Below is what I have:
...
ramesh_110176
Nimbostratus
Jan 09, 2009Thanks for all your help, after much work I have created what I needed:
when HTTP_REQUEST {
log local0. "check for [HTTP::cookie value ]"
if { [HTTP::cookie value log local0. "Found cookie"
pool test
} else {
log local0. "No cookie"
HTTP::redirect "http://sorry.x.y"
}
}
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
