Re: Multiple permisions, different sessions.
| From: | Brian V Bonini | Date: | Fri, 22 Oct 2004 13:22:50 +0000 |
| Subject: | Re: Multiple permisions, different sessions. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200083@lists.php.net to get a copy of this message | ||
On Fri, 2004-10-22 at 09:05, Pablo D Marotta wrote:
> Hi, I´m developing an intranet on Apache-PHP-Mssql.
> I need to know if there´s any way of managing users to have access to specific
> areas inside my site, and at the same time, managing other users, giving them
> permision to acces other areas only, because all of the codes and information
> I´ve found (at least for Windows), simply give permission "to acces" and pass
> the "login screen", but don´t limitate the users navigation priviledges.
> Thanks in advance!
Assigning user levels that are stored in the db along with their other
user info comes to mind. Then you could just use if($usr_level == 'xx')
or something similar throughout the site.
--
s/:-[(/]/:-)/g
Brian GnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
Key Info: http://gfx-design.com/keys
Linux Registered User #339825 at http://counter.li.org
aGEhIGJldCB5b3UgdGhpbmsgeW91IHByZXR0eSBzbGljayBmb3IgZmlndXJpbmcgb3V0I
GhvdyB0byBkZWNvZGUgdGhpcy4gVG9vIGJhZCBpdCBoYXMgbm8gc2VjcmV0IGluZm8gaW
4gaXQgaGV5Pwo=