actually, what I found useful when I encountered this exact same problem was to first initialize session like this:
session_start();
$username = "joe";
session_register('username');
$_SESSION['username'] = $username;
then you can test for the session on your admin.php page using
if(isset($_SESSION['username']))
Then you would just followup with a test to see if that username is allowed to access admin functions