Forum Discussion
Ted_Smith_11168
Nimbostratus
Feb 27, 2006seeing multiple app sessions from iRules?
This might be a long post, so please forgive me...
using a wide IP in 3DNS for aac.alliedinsurance.com
When a user comes into the aac.alliedinsurance.com site, I want to redirect them t...
JRahm
Admin
Feb 28, 2006In the third rule, it looks like this will never be matched:
if {[HTTP::cookie exists $ckname]} {
if { $uri contains "agencyctr" } {
HTTP::redirect https://$new_url
}
because you are setting ckname to aac2 directly above it. I'd remove this:
when CLIENT_ACCEPTED {
set ckname aac2
set ckvalue [IP::client_addr]
set ckdomain .alliedinsurance.com
}
from your third rule since the first line appears to overwrites the information you want out of the 2nd rule and the next two lines aren't used. I'd also recommend not setting variables unless you will use them frequently. If I were to rewrite your third rule, I'd do something like this:
when HTTP_REQUEST {
if {[HTTP::cookie exists "aac2"]} {
if { [HTTP::uri] contains "agencyctr" } {
HTTP::redirect https://[HTTP::host]/center/templates/welcome.cfm
} else { use pool Shared }
} else { HTTP::redirect https://aac.alliedinsurance.com[HTTP::uri] }
}HTH
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
