change that line to this...
header( "refresh:1;url=memberhome.php" );
It sounds like its just not refreshing to the new page.
If you want you could do this in case it does not auto refresh.
echo "Login Successful.<a href='memberhome.php'>Click if page does not redirect</a>";
header( "refresh:1;url=memberhome.php" );