ASDSO Dam Safety Toolbox

Log out: Difference between revisions

From ASDSO Dam Safety Toolbox
Jump to: navigation, search
No edit summary
No edit summary
Line 52: Line 52:
     function logOut() {
     function logOut() {
       // Clear cookie by setting the expiration date to one day ago
       // Clear cookie by setting the expiration date to one day ago
       document.getElementById("clearCookies").click();
       //document.getElementById("clearCookies").click();
       // var cookieName = 'remoteUserEmail';
       var myDate = new Date();
      // var cookieValue = '';
       myDate.setDate(myDate.getDate()-1);
      // var myDate = new Date();
       document.cookie = "remoteUserEmail='';expires=" + myDate + ";domain=damtoolbox.org;path=/;secure";
       // myDate.setDate(myDate.getDate()-1);
       // document.cookie = cookieName +"=" + cookieValue + ";expires=" + myDate + ";domain=damtoolbox.org;path=/";


       // Navigate to Impexium site and logout there
       // Navigate to Impexium site and logout there

Revision as of 23:37, 17 April 2023

Do you want to log out?