Forum Discussion
jlindwall_19593
Nimbostratus
May 11, 2015Are iRule instances scoped to a request/response?
I have an iRule that sets a variable in HTTP_REQUEST. In HTTP_RESPONSE, I read that variable.
Is this going to work properly? What I am assuming (heh!) is that each request/response gets a unique ...
May 11, 2015
If you want to experiment you can add the connection close header in the HTTP_RESPONSE event. That would prevent the browser from using the same connection.
when HTTP_REQUEST {
set cnParamValue $value
}
when HTTP_RESPONSE {
if { [info exists cnParamValue] and $cnParamValue ne "" } {
log local0. $cnParamvalue
HTTP::header insert Connection Close
unset cnParamValue
}
}
But like I said, you don't need to worry. 🙂
/Patrik
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
