Log out: Difference between revisions
From ASDSO Dam Safety Toolbox
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 myDate = new Date(); | |||
myDate.setDate(myDate.getDate()-1); | |||
document.cookie = "remoteUserEmail='';expires=" + myDate + ";domain=damtoolbox.org;path=/;secure"; | |||
// Navigate to Impexium site and logout there | // Navigate to Impexium site and logout there |