Log out: Difference between revisions
From ASDSO Dam Safety Toolbox
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
text-decoration: none;">Submit</button> | text-decoration: none;">Submit</button> | ||
<form method="post"> | |||
<input type="submit" id="clearCookies" name="impexiumLogout" style="color: white; background-color: white; text-decoration: none;" /> | |||
</form> | |||
<!-- <form method="post"> | <!-- <form method="post"> | ||
<input type="submit" name="impexiumLogout" class="button" value="Submit" | <input type="submit" name="impexiumLogout" class="button" value="Submit" | ||
Line 49: | 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(); | |||
// var cookieName = 'remoteUserEmail'; | // var cookieName = 'remoteUserEmail'; | ||
// var cookieValue = ''; | // var cookieValue = ''; |