Forum Discussion
John_Heyer_1508
Cirrostratus
Aug 09, 2017iRule Variables and Connection Re-Use
I have an iRule that does 301 redirects within the same site, and have noticed when the client reuses the connection the variables seem to not be re-initialized.
when HTTP_REQUEST {
set HO...
cjunior
Nacreous
Aug 09, 2017Hi, I think it's a normal behavior when connections keeps alive. You may try to unset the variable and/or set connections to close on redirect.
if { [info exists ACTION] } {
if { $ACTION eq "redirect" } {
HTTP::respond 301 "Location" "https://$HOST$VALUE" Connection close
}
unset ACTION
}
Regards
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
