Forum Discussion
Suppress Redirect When APM Session Ends
Is there a way to suppress the 302 redirect sent when an APM session closes? I've tried using clientless mode but the redirect packet is still sent. I tried an iRule to drop all 302s but it appears to only work for server initiated redirects — not APM initiated redirects.
when HTTP_RESPONSE {
if {[HTTP::status] == 302}{
drop
}
}
- Kevin_Davies_40
Nacreous
If its not having any effect then chain the virtual through another. So virtual 1 has the remove 302 iRule with the pool member of virtual 2 which has your APM policy.
- Kevin_Davies_40
Nacreous
Alternatively I came across this page...
https://devcentral.f5.com/wiki/iRules.ACCESS_POLICY_COMPLETED.ashx
See the example iRule. You could possible put a ACCESS::respond 200 content "" instead of the redirect.
when ACCESS_POLICY_COMPLETED { if {[ACCESS::policy result] eq "allow" } { ACCESS::respond 200 content "permitted" Content-Type "text/plain" } }
Recent Discussions
Related Content
* 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