logout.php 113 B

123456789
  1. <?php
  2. session_start();
  3. unset($_SESSION['username']);
  4. session_destroy();
  5. header("Location: index.php");
  6. exit;
  7. ?>