Forum Discussion
OWA Timeout, Redirect to Logon Page, not BIG-IP Logout page, iRule?
- Jul 06, 2016
Hi,
The APM logout URI is /vdesk/hangup.php3
You can write an irule to change the behavior when you reach this URI. For example :
when CLIENT_ACCEPTED { ACCESS::restrict_irule_events disable } when HTTP_REQUEST { if { [HTTP::uri] eq "/vdesk/hangup.php3" } { if { ([ACCESS::session exists -sid $apm_cookie]) } { ACCESS::session remove } set uri "/mystartinguri" HTTP::respond 302 noserver "Location" "$uri" "Cache-Control" "no-cache, must-revalidate" Set-Cookie "MRHSession=deleted;expires=Thu, 01-Jan-1970 00:00:10 GMT;path=/" Set-Cookie "LastMRH_Session=deleted;expires=Thu, 01-Jan-1970 00:00:10 GMT;path=/" } }
You can replace "/vdesk/hangup.php3" by your own logout URI.
You also have to set the correct landing URI. By default, you should set "/" but maybe you have defined a custom one.
Hi,
The APM logout URI is /vdesk/hangup.php3
You can write an irule to change the behavior when you reach this URI. For example :
when CLIENT_ACCEPTED {
ACCESS::restrict_irule_events disable
}
when HTTP_REQUEST {
if { [HTTP::uri] eq "/vdesk/hangup.php3" } {
if { ([ACCESS::session exists -sid $apm_cookie]) } {
ACCESS::session remove
}
set uri "/mystartinguri"
HTTP::respond 302 noserver "Location" "$uri" "Cache-Control" "no-cache, must-revalidate" Set-Cookie "MRHSession=deleted;expires=Thu, 01-Jan-1970 00:00:10 GMT;path=/" Set-Cookie "LastMRH_Session=deleted;expires=Thu, 01-Jan-1970 00:00:10 GMT;path=/"
}
}
You can replace "/vdesk/hangup.php3" by your own logout URI.
You also have to set the correct landing URI. By default, you should set "/" but maybe you have defined a custom one.
Recent Discussions
Related Content
* 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