Forum Discussion
JevgeniR
Nimbostratus
Apr 17, 2019APM session expired HTTP code
Hello community,
I am facing an interesting situation with F5 APM being deployed as a proxy in front of an application. A little background: the application itself is a mix of HTTP/AJAX/JS which...
Kai_Wilke
MVP
Apr 17, 2019Hi JevgeniR,
APM does not utilize a specific response page for expired sessions. It just starts a new APM session and then redirects the user to /my.policy.
To stop those background JSON request from creating new APM sessions and also to respond those request with a 403 - Access Denied status code, you could attach the iRule below to your Virtual Server.
when ACCESS_SESSION_STARTED {
if { [HTTP::header value "Accept"] starts_with "application/json" } {
ACCESS::session remove ACCESS::respond 401 "Access Denied"
}
}
Cheers, Kai
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