Jump to content

Need some help in the right direction...


dhmallette

Recommended Posts

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.