var Fse; if( ! Fse ) { Fse = {}; } if( ! Fse.Portal ) { Fse.Portal = {}; } Fse.Portal.endUserSession = function( sLandingPageURL ) { /* let aCookieNames = [ "CFID", "CFTOKEN", "JSESSIONID" ]; for( let x = 0; x < aCookieNames.length; x++ ) { let sCookieToDelete = aCookieNames[x] + "=" + encodeURIComponent( "" ) + "; expires=" + (new Date(0)).toGMTString(); let cookiePath = document.getElementById( "cookie-path" ).getAttribute( "rel" ); sCookieToDelete = sCookieToDelete + "; path=" + cookiePath; if ( cookiePath != "/" ) { let cookieDomain = document.getElementById( "cookie-domain" ).getAttribute( "rel" ); sCookieToDelete = sCookieToDelete + "; domain=" + cookieDomain; } document.cookie = sCookieToDelete; } */ // console.log( "Logging off" ); sessionStorage.removeItem( "navigationJSON" ); window.location.href = sLandingPageURL; };