If like me, you have been trying to restrict page access to non members, I found that this code does the trick
$logged['member'] = member_auth( 0 );
insert it to all pages that you want to restrict access. So far, I have not encountered any complications