Forum Discussion
Terrence
Nimbostratus
Feb 04, 2013OWA Timeout V2
Our institution is running Exchange 2010. Back in July I presented an irule that would provide a timeout mechanism based upon Exchange timing out the session. Since then this irule no longer funct...
mikeshimkus_111
Feb 04, 2013Historic F5 Account
Hi Terry, when you say the rule no longer works, what do you mean?
The rule below has been tested with Exchange 2010 and is still working for us:
when ACCESS_ACL_ALLOWED {
set apm_mrhsession [HTTP::cookie value "MRHSession"]
if { [table lookup $apm_mrhsession] == "EXCHANGE_LOGOUT" } {
ACCESS::session remove
table delete $apm_mrhsession
}
}
when HTTP_REQUEST {
set isset 0
set request_uri [HTTP::uri]
if {[string tolower [HTTP::uri]] contains "owa" } {
if {[string tolower [HTTP::uri]] contains "logoff.aspx" } {
ACCESS::session remove
HTTP::redirect "https://[HTTP::host]/vdesk/hangup.php3"
} else {
if { [HTTP::uri] contains "UA=0" } {
set mrhsession [HTTP::cookie value "MRHSession"]
set isset 1
}
}
}
}
when HTTP_RESPONSE {
if { $isset == 1 } {
if { $mrhsession != "" && [HTTP::status] == 440 } {
table set $mrhsession "EXCHANGE_LOGOUT"
return
}
}
}
thanks
Mike
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects