alternately just use cookies:
//when you authenticate there user name and password then you can place a cookie that expires after an hour as below
setcookie ("name", $content,time()+3600);
//then check for it whenever they open your page and send them to the mebers section if they have the cookie
if( isset( $HTTP_COOKIE_VARS["name"] )) {
header("Location: members.php");
}
now obviously you may like to get more security concious and make $content some form of there username and password and then check it when you check the cookie so that any jo bloggs can't just add a cookie to there PC and get in. ALso you can add this line in your log out function to get rid of it
setcookie ("name", "", time()-3600);
this will set the cookie to expire an hour ago thus immediately exipring it and deleting it.
I am unfamiliar with sessions. So I have no idea if this will make life easier or harder or anything. just a thought on my part. the more opinions you get the more options you have right?? 😃
good luck