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...
Ted_Smith_11168
Nimbostratus
Mar 01, 2006OK, I modified my iRules and I am still seeing multiple sessions being created in my App servers.
Here are my altered irules:
UITAAC port 80 VIP RULE 1
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/plquoting/templates/receiveincomingfile.cfm" } {
HTTP::uri "/PersonalLines/Templates/receiveincomingfile.cfm"
}
elseif { [HTTP::host] == "uitaac.allied.nwie.net" or [HTTP::host] == "uitaac"} {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
UITAAC port 443 VIP RULE 2
when CLIENT_ACCEPTED {
set ckname uitaac1
set ckvalue [IP::client_addr]
set ckdomain .allied.nwie.net
set cookie [format "%s=%s; path=/; domain=%s" $ckname $ckvalue $ckdomain]
}
when HTTP_REQUEST {
log "rule 2 incoming cookie is: [HTTP::cookie names]"
HTTP::respond 302 Location "https://uitaac1.allied.nwie.net[HTTP::uri]" "Set-Cookie" $cookie
}
UITAAC1 port 443 VIP RULE 3
when HTTP_REQUEST {
log "rule 3 incoming cookie is: [HTTP::cookie names]"
if {[HTTP::cookie exists "uitaac1"]} {
pool UITShared
}
else {
HTTP::redirect "https://uitaac.allied.nwie.net[HTTP::uri]"
}
}
If the user uses http://uitaac.allied.nwie.net, app server only issues 1 session
If user uses https://uitaac.allied.nwie.net, the app server issues 2 sessions.
I can't see why there is a difference since rule1 redirects the user to rule2.
Any ideas/help??
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
