SHARE
TWEET

Untitled

a guest Oct 23rd, 2017 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. session_start();
  3.  
  4. $username = $_SESSION['username'];
  5. $password = $_SESSION['password'];
  6.  
  7.  
  8. if(!$username && !$password){
  9. echo "Welcome Guest! <br> <a href=login.php>Login</a> | <a href=register.php>Register</a>";
  10. }else{
  11. echo "Welcome ".$username." (<a href=logout.php>Logout</a>)";
  12. }
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