Avoid anonymous users in webpages
<p>I have made a little website with signup, login and home page. I want to make sure that people cant enter the home page without logging in. I managed to do it to the index page so that if someone who hasn't logged in comes, it will include the login page and if some one who has logged in came, it would include the home page with include function. I would like to know another way to so it.
<br /><br />Thank you in advance.</p>
