Hi Alex,
you would need to alter the PHP's for this task, which is not recommended by F5 support and also has very little documentation.
I would rather then deploy an iRule on your VS which intercepts the logoff URI of the given application, kills the APM session and redirects the user to a customized logoff page served by the iRule itself. Much easier and less intrusive...
when ACCESS_ACL_ALLOWED {
switch -glob -- [HTTP::uri] {
"*application_logout_signature.html*" {
HTTP::respond 302 \
Location "/x-vdesk/hangup.php3"
}
"/x-vdesk/hangup.php3" {
HTTP::respond 200 \
content $static::custom_hangup_page \
"Content-Type" "text/html" \
"Set-Cookie" "MRHSession=deleted;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/" \
"Set-Cookie" "F5_ST=deleted;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/" \
"Set-Cookie" "MRHSHint=deleted;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/" \
"Set-Cookie" "F5_HT_shrinked=deleted;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/" \
"Set-Cookie" "F5_fullWT=deleted;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/" \
"Set-Cookie" "MRHSequence=deleted;expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/"
ACCESS::session remove
}
}
}
when RULE_INIT {
set static::custom_hangup_page {
BIG-IP logout page
JavaScript is not enabled. Please enable JavaScript in your browser or contact your system administrator for assistance.
To open a new session, please
Your session is finished.
Logged out successfully.
Thank you for using BIG-IP.
This product is licensed from F5 Networks. © 1999-2017 F5 Networks. All rights reserved.
}
}
Note: The HTML of the logoff page has been borrowed from a default APM login pages. Just the link has been removed and the Copyright Symbol of the Page Footer is HTML encoded to allow saving of the iRule...
Cheers, Kai