I originally had this code (without die) but it would allow the page to be viewed.
I tried to add the die function, however it is just showing the blank page.
<?php require('dbcon.php');?>
<?php session_start();
if (!isset($_SESSION['adminauth']))
{
header('login.php');
die();
};
?>