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..! Link to comment https://forums.phpfreaks.com/topic/58432-so-im-trying-to-make-a-login-script/ 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. } ?> Link to comment https://forums.phpfreaks.com/topic/58432-so-im-trying-to-make-a-login-script/#findComment-289746 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.