Log out: Difference between revisions
From ASDSO Dam Safety Toolbox
No edit summary |
No edit summary |
||
Line 49: | Line 49: | ||
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 | ||
var cookieName = 'remoteUserEmail'; | // var cookieName = 'remoteUserEmail'; | ||
var cookieValue = ''; | // var cookieValue = ''; | ||
var myDate = new Date(); | // var myDate = new Date(); | ||
myDate.setDate(myDate.getDate()-1); | // myDate.setDate(myDate.getDate()-1); | ||
document.cookie = cookieName +"=" + cookieValue + ";expires=" + myDate + ";domain=damtoolbox.org;path=/"; | // document.cookie = cookieName +"=" + cookieValue + ";expires=" + myDate + ";domain=damtoolbox.org;path=/"; | ||
document.write("<?php impexiumLogout() ?>"); | |||