3600){ session_unset(); session_destroy(); header("Location:login.php"); $_SESSION['error'] = "session timeout"; } } else { header('Location: login.php'); die(); }