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 47: Line 47:
     function logOut() {
     function logOut() {
       // Clear cookie by setting the expiration date to one hour ago
       // Clear cookie by setting the expiration date to one hour ago
       console.log('Clear cookie');
       console.log('Clear cookie');
       //document.cookie = "remoteUserEmail=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
       //document.cookie = "remoteUserEmail=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
       setCookie('remoteUserEmail', '', -1);
       setCookie('remoteUserEmail', '', -1);


Line 61: Line 59:




       console.log('FINISH Show confirmation');
       // Show confirmation
       var x = document.getElementById("confirmLogout");
       var x = document.getElementById("confirmLogout");
       x.style.visibility = "hidden";
       x.style.visibility = "hidden";
       var y = document.getElementById("logoutSuccess");
       var y = document.getElementById("logoutSuccess");
       y.style.visibility = "visible";
       y.style.visibility = "visible";
      // TODO: FINISH Show confirmation
      //echo '<style type="text/css">#confirmLogout{ visibility: hidden; } #logoutSuccess{ visibility: visible; }</style>';
     }
     }
   </script>
   </script>
</html>
</html>

Revision as of 19:52, 17 April 2023

Do you want to log out?