Forum Discussion
mburnham_59608
Aug 02, 2011Nimbostratus
Use a variable in REWRITE_RESPONSE_DONE that was set in ACCESS_POLICY_COMPLETED
Hi all,
I would like to use a variable set in ACCESS_POLICY_COMPLETED (as below) in the REWRITE_RESPONSE_DONE event.
when ACCESS_POLICY_COMPLETED {
set targetbaseurl "https://moo.foo.com"
ma...
Kevin_Davies_40
Aug 03, 2011Nacreous
If you set a variable it should be available to other iRules on the same VIP for the life of the TCP connection.
Easy to test...
when ACCESS_POLICY_COMPLETED {
set testvar "scope-check"
}
when REWRITE_RESPONSE_DONE {
if {[info exists testvar]} {
log "testvar=$testvar"
}
}
Check /var/log/ltm for the log entry.
If that doesnt work you could store information using session or tables which is global to the box. See the table command.
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