logout.php 156 B

12345678
  1. <?php
  2. if(session_status() == PHP_SESSION_NONE)
  3. {
  4. session_start();
  5. }
  6. unset($_SESSION["user"]);
  7. header("Location: index.php");
  8. ?>