query("INSERT Login_log SET user_id=$user_id, Status='Logout', loged_in=NOW()") or die ($mysqli->error); } $Status='Logout'; include_once 'log_access.php'; session_start(); session_unset(); unset($_SESSION); session_destroy(); header("Location: ../login.php"); exit(); } else { header("Location: ../login.php");}