pradeep79 Posted March 30, 2007 Share Posted March 30, 2007 Hi, I want to know how you can restrict access to certain PHP pages, based on the password used at login. One idea is to check against a privilege table everytime a page is loaded, but that will create a heavy database traffic. Any ideas? Link to comment https://forums.phpfreaks.com/topic/44979-page-access-restriction-techniques/ Share on other sites More sharing options...
AndyB Posted March 31, 2007 Share Posted March 31, 2007 at login, check database for a user 'level' and assign a session variable for the user. On restricted pages check the session variable to see if the user has a sufficient 'level' ... Link to comment https://forums.phpfreaks.com/topic/44979-page-access-restriction-techniques/#findComment-218470 Share on other sites More sharing options...
pradeep79 Posted March 31, 2007 Author Share Posted March 31, 2007 Thanks Andy, I think that's what I want to use. Link to comment https://forums.phpfreaks.com/topic/44979-page-access-restriction-techniques/#findComment-218567 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.