Robert Elsdon Posted May 4, 2008 Share Posted May 4, 2008 I want it so that people have to register to acess all of the pages, but if they try to acess a page it comes up with a error saying You must be logged in to acess this page. Please help me im a PHP Newbie! Link to comment https://forums.phpfreaks.com/topic/104072-solved-how-can-i-stop-unregisterd-users-from-visiting-my-pages/ Share on other sites More sharing options...
DeanWhitehouse Posted May 4, 2008 Share Posted May 4, 2008 I would use sessions then check for the session on the page's you want protected Link to comment https://forums.phpfreaks.com/topic/104072-solved-how-can-i-stop-unregisterd-users-from-visiting-my-pages/#findComment-532743 Share on other sites More sharing options...
Robert Elsdon Posted May 4, 2008 Author Share Posted May 4, 2008 Thanks alot but.. Could you get me the code ive been trying to look for ages. Please get me th code! thanks alot! Link to comment https://forums.phpfreaks.com/topic/104072-solved-how-can-i-stop-unregisterd-users-from-visiting-my-pages/#findComment-532745 Share on other sites More sharing options...
pocobueno1388 Posted May 4, 2008 Share Posted May 4, 2008 Just Google "PHP login tutorial". http://www.trap17.com/index.php/php-simple-login-tutorial_t7887.html Link to comment https://forums.phpfreaks.com/topic/104072-solved-how-can-i-stop-unregisterd-users-from-visiting-my-pages/#findComment-532748 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.