<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script type="text/javascript">
function logout()
{
if(window.event.clientX<0 && window.event.clientY<0)
{
window.open('../logout.php');
}
}
</script>
<body onUnload="logout();" >
</body>
</html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script type="text/javascript">
function logout() {
var get = new Image();
get.src = '../logout.php?' + Math.random;
alert('You have been logged out.');
}
</script>
<body onunload="logout();" >
</body>
</html>
What does logout.php actually do? Does it just show a logout message to the user? Or does it actually run logout code do remove a cookie or whatever?