Forum Discussion
AngryCat_52750
Nimbostratus
Jan 30, 2014end APM session on browser close
Is there a way to end a APM session when the user closes a browser window?? i understand this is a client side event but can the APM do anything? We have a APM policy with a login page and once a use...
Abdessamad1
Cirrostratus
Nov 27, 2014I managed to get this (almost) working with the iRule bellow:
when ACCESS_ACL_ALLOWED {
switch -glob [HTTP::header value "User-Agent"] {
"Microsoft Office*" -
"MSFrontPage*" -
"Microsoft-WebDAV*" {
return
}
default {
set ::sess_verify [ACCESS::session data get session.custom.verify]
log local0. " ::sess_verify variable set to [ACCESS::session data get session.custom.verify] "
if { $::sess_verify == 1} {
if { [ACCESS::session exists -state_allow]} {
if { [HTTP::cookie exists "SessionCheck"]} {
return
} else {
ACCESS::session remove
HTTP::respond 302 Location "/vdesk/hangup.php3"
return
}
}
}
}
}
}
when HTTP_RESPONSE {
HTTP::cookie insert name SessionCheck value [ACCESS::session data get session.user.sessionid] path / domain era.europa.eu
HTTP::cookie secure SessionCheck enable
ACCESS::session data set session.custom.verify 1
}
But we still have an issue as a user needs to reopen the browser so that the APM clear its session. So office documents remains accessible in the mean time, which is a security issue.
Do you guys have a working example of using a javascript? the example above seems to me not complete (I'm not a javascript expert)
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