dhmallette Posted November 16, 2009 Share Posted November 16, 2009 I'm looking at changing our current way of doing things for the company I work for. Currently we have a small php script at the top of the page we want to restrict access to and it has one common password for everyone. What I want to be able to do is have a dedicated login for each sub contractor that they will 'always' use.. and have their login give them a page that shows them what jobs they 'can' access. And it won't show them what they can't access. This will help me to keep from having to mail out/call every person who 'should' have access to a job.. everytime we have a new job and give them all the 'current' job page password. Has anyone any suggestions? I'm new to PHP/MySQL but have purchased a couple of books and am just not finding what I think I am needing. Any help will be greatly appreciated. DhMallette Quote Link to comment https://forums.phpfreaks.com/topic/181772-need-some-help-in-the-right-direction/ Share on other sites More sharing options...
KevinM1 Posted November 17, 2009 Share Posted November 17, 2009 Short answer: In your books, look for a chapter titled something along the lines of "Group Membership", "Role Management", "User Management System", "Managing User Groups", or something along those lines. Longer answer: You'll need to design two main things: 1. Login system 2. User management system The login system should be fairly trivial to come up with. You store user credentials in the db. If the submitted info matches what's in the db, that person is logged in. The user management system is more complicated, and its design relies on the realities of what you need the system to do as a whole. So, there's no standard solution you can plug into your site. To start you thinking about the design, are any of the sub-contractors part of a certain group? Should they be? Or do they need to be all treated individually? Quote Link to comment https://forums.phpfreaks.com/topic/181772-need-some-help-in-the-right-direction/#findComment-959399 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.