SHARE
TWEET

Untitled

a guest Jan 24th, 2020 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     session_start();
  3.     $u = $_GET['u'];
  4.     $p = $_GET['pw'];
  5.  
  6.     if(isset($_SESSION['LOG'])) {
  7.         echo "logged in!";
  8.         echo '<a href="logout.php">Out</a>';
  9.     }
  10.     else {
  11.         if($u == 'a' && $p == 'b')
  12.         {
  13.             $_SESSION['LOG'] = 'imloggedin#id';
  14.             header("Location: index.php");
  15.         }
  16.     }
  17.  
  18. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top