Stanislas_Piron
May 18, 2016Nimbostratus
LTM+APM session expired detection
Hi,
When deploying APM in SSL VPN mode, a javascript is inserted to webtop and ressources responses to poll /vdesk/timeoutagent-i.php, detect session timeout and redirect to logout URI /vdesk/hangup.php3?hangup_error=1
When deploying in LTM+APM mode, the user is not redirected to logout URI and this may generate strange behavior when user try to request again the server:
In Outlook Web App and Sharepoint, the application seems unresponsive and the message "Access policy evaluation is already in progress" appears when trying to refresh the page.
I was trying to insert javascript code in HTTP_RESPONSE to create the same behavior of SSL VPN mode unsuccessfully.
when HTTP_REQUEST {
Disable the stream filter for all requests
STREAM::disable
LTM does not uncompress response content, so if the server has compression enabled
and it cannot be disabled on the server, we can prevent the server from
sending a compressed response by removing the compression offerings from the client
HTTP::header remove "Accept-Encoding"
}
when HTTP_RESPONSE {
if {([HTTP::header Content-Type] starts_with "text/")} {
STREAM::expression "@@@"
STREAM::enable
}
}
when STREAM_MATCHED {
Once we've hit one match, disable the stream filter for the rest of the response
log local0. "APM Timeout javascript : script inserted"
STREAM::disable
}
Is there another solution? Does anyone tried to do the same successfully?