Thanks for trying to use PHP tags. To end a block of PHP code, its "/PHP" not another "PHP" tag.
Also, debug your script. Find out what session variables we have. Change:
if(!$_SESSION['username'] || !$_SESSION['password'])
{
header("Location: login_form.php");
exit;
}
to:
if(!$_SESSION['username'] || !$_SESSION['password'])
{
print_r($_SESSION); // DEBUG LINE
//header("Location: login_form.php");
exit;
}
EDIT: Also, here's an error on your site, not related to this issue. In lost-password.htm, you have this:
<form action="members/secure/lostpw.php" method="post">
but the correct path would be this:
<form action="lostpw.php" method="post">
Just FYI.