Redirect to log in page if session does not exist in PHP : <p>So I have this page that can only be accessed if a user is logged in. If not, he will be redirected to the home page (if the user visits the page directly). What I want to do, is to redirect the user to the login page, and if it the login is successful, then will get redirected to the page.</p>
