LOGOUT


SUBMITTED BY: AKSHAT007HERE

DATE: Feb. 22, 2017, 9:33 a.m.

FORMAT: PHP

SIZE: 262 Bytes

HITS: 718

  1. <?php
  2. session_start();
  3. // although 2nd and 3rd line is not needed session_destroy() is needed,
  4. // but just to be extra sure that no session remains in the cache.
  5. $_SESSION = array();
  6. unset($_SESSION);
  7. session_destroy();
  8. header("location:index.php");
  9. ?>

comments powered by Disqus