You are here: Re: [PHP] User Management « PHP « IT news, forums, messages
Re: [PHP] User Management

Posted by Satyam on 10/19/85 11:13

One of the most flexible ways to do this is to have one table with each user
information, then a table of groups and group members. Users, per se, don't
have permissions, they acquire them from the groups they belong to, it is
easier that way than to assign permissions to each individual user, you just
have a group of, say, administrators, receptionists, cashiers, purchasing,
whatever and then assign people to one or more groups.

Then, you can have a third level which allows you to assign permissions to
each group. As I said, you may have this level or not.

Then, in each page you can say which group can use it (if you didn't use the
third level) or which permission is required to see it.

Satyam


"Dasmeet Singh" <singhdasmeet@gmail.com> wrote in message
news:425CF11B.9000908@gmail.com...
> Thanks..
>
> And how to manage user and their permissions.. should I store each page
> name in a table and then store permissions of each and every user to
> individual pages in another table?
>
> Is there any other way to do this?
>
>
> angelo@zlogic.co.za wrote:
>
>>
>> use an include file at the top of each page.
>> in this include file you will check to see whether that user has access
>> to see that page, if they dont then just redirect to the main menu page
>> or an error page.
>>
>> hope this helps
>>
>> Angelo Zanetti
>> Z Logic
>>
>> www.zlogic.co.za
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация