Forum Discussion
stanjavoor
Oct 24, 2019Nimbostratus
Thank 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\""
}
}