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? Quote Link to comment 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' ... Quote Link to comment 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. 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.