/var/www/enzatesting.onesolution.hk/logout.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
//require_once 'inc/checkLogin.php';
session_start();

$_SESSION = array();
if(
ini_get("session.use_cookies")){
    
$params session_get_cookie_params();
    
setcookie(session_name(), ''time() - 42000$params["path"], $params["domain"], $params["secure"], $params["httponly"]);
}
session_destroy();
//mysql_close($dbh);
//var_dump($_SESSION);
//exit("clear session");
//header('Location: index.php');


?>
<html>
<style type="text/css">
body,td,th {
    color: #FFF;
}
body {
    background-color: #232323;
}
</style>
<body>
<h1>Loading...</h1>

<script>setTimeout(function(){parent.location.href="index.php"}, 1000);</script>
</body>
</html>