Guest User

Untitled

a guest
Oct 23rd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment