Forum Discussion
Michael_Jenkins
Apr 05, 2016Cirrostratus
Another option (though not the prettiest or easiest) would be to intercept a request to /vdesk/hangup.php3 (or a response redirect to that page) and present the user with a custom page that uses AJAX calls to request the individual logout pages of the applications, and once completed, redirects the user to the hangup page again with a query parameter or something that would denote it should be intercepted again.
iRule code might start like this:
when HTTP_REQUEST {
set hostvar [HTTP::host]
set urivar [HTTP::uri]
}
when HTTP_RESPONSE {
if { [HTTP::header exists Location] && [HTTP::header value Location] equals "/vdesk/hangup.php3" } {
HTTP::respond 200 content {
Your page here
} Cache-Control No-Cache Pragma No-Cache
}
}
Also, if you're interested in APM event flow, you can check out this article which gives a flowchart of most of the events there.