juniorsabbath

Untitled

Jun 12th, 2017
9,770
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.22 KB | None | 0 0
  1. <?php
  2. session_start();
  3.  
  4. if(isset($_SESSION['usr_id'])) {
  5.     session_destroy();
  6.     unset($_SESSION['usr_id']);
  7.     unset($_SESSION['usr_name']);
  8.     header("Location: index.php");
  9. } else {
  10.     header("Location: index.php");
  11. }
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment