Re: [PHP] PHP App User Permissions Tecnique

2004-10-16 Thread GH
However I would think that using the db would allow for you to change
the persons while they are using the site and would not make them have
to  relog in

suggestions?


On Fri, 15 Oct 2004 10:52:53 +0200, Ian Firla <[EMAIL PROTECTED]> wrote:
> 
> Definitely store them in a session. A db lookup will mean a much heavier
> and process intensive procedure.
> 
> Ian
> 
> 
> 
> On Fri, 2004-10-15 at 09:41, Brendon wrote:
> > I am building a web based community forum type software using PHP. I am
> > currently working on how different user privelages are handled. Each
> > user is part of a group and each group has varying degrees of privelages.
> >
> > I need to add in functionality which at the begginning of every script
> > check the permission level of the user accessing the page. There are
> > about 15 different permissions.
> >
> > I am debating whether i should store all the permission abilities into
> > session variables and they can quickly be checked throughout the script,
> > or whether i should query the database to check to see if the user has
> > adequate group permissions to perform a certain function.
> >
> > Could someone give me some advice as to which would be more advisable?
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP App User Permissions Tecnique

2004-10-15 Thread Ian Firla

Definitely store them in a session. A db lookup will mean a much heavier
and process intensive procedure.

Ian

On Fri, 2004-10-15 at 09:41, Brendon wrote:
> I am building a web based community forum type software using PHP. I am 
> currently working on how different user privelages are handled. Each 
> user is part of a group and each group has varying degrees of privelages.
> 
> I need to add in functionality which at the begginning of every script 
> check the permission level of the user accessing the page. There are 
> about 15 different permissions.
> 
> I am debating whether i should store all the permission abilities into 
> session variables and they can quickly be checked throughout the script, 
> or whether i should query the database to check to see if the user has 
> adequate group permissions to perform a certain function.
> 
> Could someone give me some advice as to which would be more advisable?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP App User Permissions Tecnique

2004-10-15 Thread Yusuf Tikupadang
I think read from database better than from session, because it's more
easy than usnig session.

On Fri, 15 Oct 2004 00:41:31 -0700, Brendon <[EMAIL PROTECTED]> wrote:
> I am building a web based community forum type software using PHP. I am
> currently working on how different user privelages are handled. Each
> user is part of a group and each group has varying degrees of privelages.
> 
> I need to add in functionality which at the begginning of every script
> check the permission level of the user accessing the page. There are
> about 15 different permissions.
> 
> I am debating whether i should store all the permission abilities into
> session variables and they can quickly be checked throughout the script,
> or whether i should query the database to check to see if the user has
> adequate group permissions to perform a certain function.
> 
> Could someone give me some advice as to which would be more advisable?
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP App User Permissions Tecnique

2004-10-15 Thread Brendon
I am building a web based community forum type software using PHP. I am 
currently working on how different user privelages are handled. Each 
user is part of a group and each group has varying degrees of privelages.

I need to add in functionality which at the begginning of every script 
check the permission level of the user accessing the page. There are 
about 15 different permissions.

I am debating whether i should store all the permission abilities into 
session variables and they can quickly be checked throughout the script, 
or whether i should query the database to check to see if the user has 
adequate group permissions to perform a certain function.

Could someone give me some advice as to which would be more advisable?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php