chimp1950 Posted July 4, 2007 Share Posted July 4, 2007 everything going well apart from the index.php is still available even though i have clicked logout..is there anyway i can check to see if they are logged in or not and provide a error saying please login..! Quote Link to comment Share on other sites More sharing options...
xyn Posted July 4, 2007 Share Posted July 4, 2007 Basically make a Sessions file... sessions.php <?php session_start(); if(!isset($_SESSION['LoggedIn'])) { //session is not set or false, not logged in. } ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.