Re: [PHP] Best authentication method for user

2006-04-03 Thread Grant Young
Hi Alain. On the authentication front, you can use HTTP basic authentication for this kind of thing too - and it means you're not having to re-invent the wheel in a lot of ways. The Auth_HTTP PEAR module makes this pretty simple to implement: http://pear.php.net/package/Auth_HTTP/ You can i

Re: [PHP] Best authentication method for user

2006-04-03 Thread Ligaya Turmelle
Alain Roger wrote: ok, but how to make a non-logged user executes some stored procedures or Queries ? MySQL will need some login and password for that. so, that's why i've asked such question...how and where to store this non-logged user's info (login, password) to not make physical user type th

Re: [PHP] Best authentication method for user

2006-04-03 Thread chris smith
On 4/3/06, Alain Roger <[EMAIL PROTECTED]> wrote: > I suppose that this config file should be included in all PHP file via > include command. > is it true ? Yes. I'd actually use 'require' not 'include' since you always want it to be there. -- Postgresql & php tutorials http://www.designmagick.c

Re: [PHP] Best authentication method for user

2006-04-03 Thread Alain Roger
I suppose that this config file should be included in all PHP file via include command. is it true ? On 4/3/06, chris smith <[EMAIL PROTECTED]> wrote: > > On 4/3/06, Alain Roger <[EMAIL PROTECTED]> wrote: > > ok, but how to make a non-logged user executes some stored procedures or > > Queries ? >

Re: [PHP] Best authentication method for user

2006-04-03 Thread chris smith
On 4/3/06, Alain Roger <[EMAIL PROTECTED]> wrote: > ok, but how to make a non-logged user executes some stored procedures or > Queries ? > MySQL will need some login and password for that. > > so, that's why i've asked such question...how and where to store this > non-logged user's info (login, pas

Re: [PHP] Best authentication method for user

2006-04-03 Thread Alain Roger
ok, but how to make a non-logged user executes some stored procedures or Queries ? MySQL will need some login and password for that. so, that's why i've asked such question...how and where to store this non-logged user's info (login, password) to not make physical user type them ? (this must be se

Re: [PHP] Best authentication method for user

2006-04-02 Thread Ligaya Turmelle
For that i was thinking to use session and register his login and password as session variable. What do you think about that ? I personally would only hold a password for as long as it is needed to log them in. Then I'd set a session var that they have logged in and another session var f

Re: [PHP] Best authentication method for user

2006-04-02 Thread Chris
Alain Roger wrote: IN fact, i would like to have 2 profiles. 1 as common user : everybody should use this profile, to browse website and execute common queries. 1 as poweruser : this profile will require a logon in some ssl webpage. it is use to update/administrate database. for sure, peop

Re: [PHP] Best authentication method for user

2006-04-02 Thread Alain Roger
IN fact, i would like to have 2 profiles. 1 as common user : everybody should use this profile, to browse website and execute common queries. 1 as poweruser : this profile will require a logon in some ssl webpage. it is use to update/administrate database. for sure, people with poweruser profile

Re: [PHP] Best authentication method for user

2006-04-02 Thread Chris
Alain Roger wrote: Hi, I would like to use a secure way how my user is authenticated. For that i was thinking to use session and register his login and password as session variable. Like that, when he will need to execute a query he will not have to type again everything but application will do