PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
You've set $_SESSION['username'] in your login.php and called $_SESSION['user'] in your default.php. Make sure they match and it will work - easy mistake!