PHP - Logout example


SUBMITTED BY: efbee

DATE: Oct. 3, 2016, 3:53 p.m.

FORMAT: PHP

SIZE: 183 Bytes

HITS: 711

  1. <?php
  2. session_start();
  3. unset($_SESSION["username"]);
  4. unset($_SESSION["password"]);
  5. echo 'You have cleaned session';
  6. header('Refresh: 2; URL = login.php');
  7. ?>

comments powered by Disqus