Log out: Difference between revisions
From ASDSO Dam Safety Toolbox
No edit summary |
No edit summary |
||
Line 32: | Line 32: | ||
<p><strong>You are now logged out.</strong></p> | <p><strong>You are now logged out.</strong></p> | ||
<p>Note that some pages may continue to be displayed as if you are still logged in, until you clear your browser cache.</p> | <p>Note that some pages may continue to be displayed as if you are still logged in, until you clear your browser cache.</p> | ||
<p>Return to <a href="">Page | <p>Return to <a id="redirectUrl" href="/wiki/Main_Page">Main Page</a></p> | ||
</div> | </div> | ||
<script> | <script> | ||
function | function onLoad(){ | ||
const | const urlParams = new URL(window.location.toLocaleString()).searchParams; | ||
const redirectUrl = urlParams.get('redirectUrl'); | |||
console.log(redirectUrl); | |||
document.getElementById("redirectUrl").href = redirectUrl; | |||
console.log( | document.getElementById("redirectUrl").text = redirectUrl; | ||
} | } | ||
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 | ||
const d = new Date(); | |||
d.setTime(d.getTime()-3600); | |||
document.cookie = "remoteUserEmail=; expires="+ d.toUTCString() + "; path=/;"; | |||
// Navigate to Impexium site and logout there | // Navigate to Impexium site and logout there | ||
setTimeout(function() { | |||
window.location.href = 'https://asdso.mpxstage.com/account/logout.aspx'; | |||
}, 3000); | |||
// Show confirmation | // Show confirmation |
Revision as of 20:02, 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 Main Page