Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if ($_SESSION['username'] != '') {
- echo "Welcome, " .$_SESSION['username']. "!<br /><a href ='logout.php'>Click</a> to log out";
- } else {
- echo "You need to <a href='index.php'>Log In</a>";
- }
- ?>
Add Comment
Please, Sign In to add comment