I added a functions page which had one function for displaying a members login box and one function for displaying a logged in box.
Then I used if/else as you suggested. If cookie was not authorized, then the login box appeared. If cookie authorized, then the welcome message appeared.
Example:
<?
if ($auth == "ok") //If cookie is accepted.
{
logged_in(); //Display logged_in() function listed in functions.php
exit();
} else { //If cookie is not accepted.
login_form(); //Display login_form() function listed in functions.php
exit();
}
?>
Thanks laserlight. I just needed to know how to approach the problem. I appreciate the lead.