Guest User

Untitled

a guest
Oct 17th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. <?php
  2. session_start();
  3.  
  4. if ($_SESSION['username'] != '') {
  5. echo "Welcome, " .$_SESSION['username']. "!<br /><a href ='logout.php'>Click</a> to log out";
  6. } else {
  7. echo "You need to <a href='index.php'>Log In</a>";
  8. }
  9. ?>
Add Comment
Please, Sign In to add comment