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 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() ?>");





Revision as of 21:15, 17 April 2023

Do you want to log out?