getMessage(); header('Location: signin.php'); exit(); } $req = $pdo->prepare('DELETE FROM Users WHERE login = :login'); $req->bindValue(':login', $_SESSION['login']); if ($req->execute()) { header('Location: signin.php'); exit(); } else { header('Location: welcome.php'); exit(); }