ReginaRay

Untitled

Jan 16th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.18 KB | None | 0 0
  1. <?php
  2.  
  3. session_start();
  4.  
  5.  
  6. if($_GET['do'] == 'logout'){
  7. unset($_SESSION['admin']);
  8. session_destroy();
  9. }
  10. if(!$_SESSION['admin']){
  11. header("Location: enter.php");
  12. exit;
  13. }
  14. ?>
Add Comment
Please, Sign In to add comment