comparison plugins/http_authentication/logout.html @ 0:1e000243b222

vanilla 1.3.3 distro, I hope
author Charlie Root
date Thu, 04 Jan 2018 15:50:29 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1e000243b222
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <title>Logout</title>
6 <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
7 <script type="text/javascript">
8
9 // as seen on http://stackoverflow.com/questions/31326/is-there-a-browser-equivalent-to-ies-clearauthenticationcache
10 $(document).ready(function(){
11 if (document.all && document.execCommand) {
12 document.execCommand("ClearAuthenticationCache", "false");
13 }
14 else {
15 $.ajax({
16 url: location.href,
17 type: 'POST',
18 username: '__LOGOUT__',
19 password: '***********'
20 });
21 }
22 });
23
24 </script>
25 </head>
26 <body>
27 <h1>You've successully been logged out!</h1>
28
29 </body>