Log out: Difference between revisions
From ASDSO Dam Safety Toolbox
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: | ||
// 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"; | ||
} | } | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 19:52, 17 April 2023
Do you want to log out?
You are now logged out.
Note that some pages may continue to be displayed as if you are still logged in, until you clear your browser cache.
Return to Page Name