title: PHP, Prevent users from accessing a page while not logged in?
body: <p>How can I prevent a user from accessing a page when they are not logged in? I want him to be redirected to the login page. I know it has something to do with sessions.</p>