I think you should not include "login.php" in the other pages.
<?php session_start();
include 'login.php'; //<-- This should not be here
// Check, if username session is NOT set then this page will jump to login page
if (!isset($_SESSION['username']))
{
header('Location:login.html');
}
?>
ringunger