ahmedkl Posted June 15, 2010 Share Posted June 15, 2010 I made a website in which i got an admin login , now what i want to do is the pages that admin when logged in can use , the other users should not be allowed to do that. For example by going to the page with the help of browser , i.e just pasting the link and get their Link to comment https://forums.phpfreaks.com/topic/204831-access-to-pages-help/ Share on other sites More sharing options...
poleposters Posted June 15, 2010 Share Posted June 15, 2010 Hi. Can you post your login script? Your login script should create a $_SESSION variable. ie your admin username or something like that. Then at the top of every script that is admin only, you should check to see if this $_SESSION variable exists. If it doesn't, then redirect the user. Link to comment https://forums.phpfreaks.com/topic/204831-access-to-pages-help/#findComment-1072315 Share on other sites More sharing options...
ahmedkl Posted June 15, 2010 Author Share Posted June 15, 2010 thanks poleposters i just did as you said as also found the same from google and the problem is fixed . Thankyou Link to comment https://forums.phpfreaks.com/topic/204831-access-to-pages-help/#findComment-1072336 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.