To build upon Jacob's answer.
Set a cookie or session upon logon and upset it upon logout.
In the index page. Check that the user is already logged in, and redirect the to the members page if they are.
Also it is a good idea to use the header function and disable caching of the page so that it is checked against the server every time.