PHP Logout Example


SUBMITTED BY: amankalsi22

DATE: Oct. 3, 2016, 5:37 p.m.

FORMAT: Text only

SIZE: 183 Bytes

HITS: 17507

  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