Forum Discussion
stanjavoor
Nimbostratus
Oct 17, 2019F5 APM Session Cookies Doesn't Clear after User Inactivity
F5 APM Session Cookie MRHSession doesn't clear from browser if a user is inactive for more than 49 minutes. We are using a custom iRule to invoke logout uri which will clear APM session cookies (F5_...
stanjavoor
Nimbostratus
Oct 24, 2019Thank you for looking into this, here you go Dave.
when HTTP_REQUEST {
set apm_cookie [HTTP::cookie value MRHSession]
if { $apm_cookie != "" && ! [ACCESS::session exists $apm_cookie] }
{
ACCESS::session modify -sid $apm_cookie -timeout 1
if { [ACCESS::session exists $apm_cookie] } {
ACCESS::session remove -sid $apm_cookie
}
set close_url "test.idp.abc.com/login/signout"
set uri "/wps/unauth/home"
HTTP::respond 302 Location "https://$close_url?fromURI=https://[HTTP::host]$uri" "Cache-Control" "no-cache, must-revalidate" "Set-Cookie" "MRHSession=deleted;path=/;secure;expires=\"Thu, 01-Jan-1970 00:00:01 GMT\"" "Set-Cookie" "LastMRH_Session=deleted;path=/;secure;expires=\"Thu, 01-Jan-1970 00:00:01 GMT\"" "Set-Cookie" "F5_ST=deleted;path=/;secure;expires=\"Thu, 01-Jan-1970 00:00:01 GMT\""
}
}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
