Re: Best authentication method for user
| From: | Chris | Date: | Mon, 03 Apr 2006 05:29:25 +0000 |
| Subject: | Re: Best authentication method for user | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233102@lists.php.net to get a copy of this message | ||
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, people with poweruser profile should log-in, so they will type login and their password. however, the users profile do not have any reason to type login and password, they should only browse the website. their login and password will be only use to execute stored procedures/queries. that's why i would like to find a way how to secure it enough but login and password should come from somewhere. the application : a simple MySQL-PHP website for cosmetics services. (so prices, info, appointment reservation,..)I'd do it like this.. A non-logged-in user should only be doing searching, browsing categories, possibly adding to a shopping cart (if it exists). A logged-in user can make appointments. A super-user can change prices, make new categories and so on (in your admin area). Store details in the db & session - or for a shopping cart, in a cookie so they can come back later and complete a purchase.
On 4/3/06, *Chris* <dmagick@gmail.com <mailto:dmagick@gmail.com>> wrote:-- Postgresql & php tutorials http://www.designmagick.com/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 andpasswordas session variable. Like that, when he will need to execute aquery he willnot have to type again everything but application will do it alone. What do you think about that ? Moreover, it should exist a default user with which, everybodywill be ableto execute some basic queries. i was thinking to store this login and password in hardcoding insome textfile that will be used at the first web page (some file that iwill includein my PHP code).... after everything will be managed by PHPsessions andvariables. i know that hardcoding is not the best secured solution, butreally defaultuser should not enter his login and password. So how can i do that ?What exactly is your application doing? We can't really give much advice if we don't know what it's for.-- Postgresql & php tutorials http://www.designmagick.com/