Thomas Bruederli
2012-08-06 c41a86e5cc26dc8ae37ed4b3fddcaa195b1616a4
commit | author | age
48e9c1 1 <!DOCTYPE html>
T 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>