desjardins2010 Posted December 22, 2010 Share Posted December 22, 2010 Right now I have a SESSION so when users flip though pages they carry their info with them, what I'm trying to do now is that userhome.php can't be accesses unless the user just was succesful in cracking there system.. game I'm creating for those of you helping and following me while I do this! it's a virutal hacking simulation and where I'm now is that the user's passwordcracker was compared to the target systems 'systemkey' and either granted him access or didn't, if it did it displayed a progress bar then fowarded to userhome.php where the target users info will lay, right now though if I just type in userhome.php i get there without haveing the crack it.... any ideas? Quote Link to comment Share on other sites More sharing options...
Rifts Posted December 22, 2010 Share Posted December 22, 2010 you need to add a check something like if ($_SESSION['isloggedin'] != "1") { header("Location:http://". $_SERVER['SERVER_NAME']); } else { //show page } 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.