How to avoid "Access policy evaluation is already in progress"
Hello,
I am using the iRule below to close Outlook Web App 2013 sessions. At the first sight it works correctly and shows the F5 logoff page (/vdesk/hangup.php3).
However, OWA 2013 has a javascript that performs a hidden POST to the server on the onunload event to close the session on the server side. This happens right after the session is closed by the F5 logoff page. So it automatically creates a new APM session and when the user clicks on "Click here to login again" he/she sees the message below coming from APM:
"Access policy evaluation is already in progress"
How can I avoid this message?
I tried to do ACCESS::session remove on in response to this last hidden POST but it didn't help. I also tried to introduce some delay before redirecting the user to the F5 logout page in order to let it perform the last POST but it did not work either.
when HTTP_REQUEST {
Set the uri variable
set uri [string tolower [HTTP::uri]]
Check if the user clicked the OWA signout link and redirect to the F5 logout page
if { $uri contains "/logoff.owa" || $uri contains "/logoff.aspx" } {
HTTP::redirect "/vdesk/hangup.php3"
}
}