Guest User

Untitled

a guest
May 16th, 2020
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?php
  2. if(!isset($_SESSION['id'])) {
  3.     echo '<li><a href="includes/logoutsystem.php"><i class="fas fa-sign-out-alt"></i>Log Out</a></li>';
  4.     } else {
  5.     echo '
  6.         <li><a href="login.php"><i class="fas fa-sign-in-alt"></i>Log In</a></li>
  7.         <li><a href="signup.php"><i class="fas fa-user-plus"></i>Sign Up</a></li>';
  8.     }
  9. ?>
  10.  
  11. <?php
  12.     unset($_SESSION['id']);
  13.     session_destroy();
  14.     header("Location: ../index.php");
  15. ?>
Add Comment
Please, Sign In to add comment