Re: PHP + Apache Authentification

From: Date: Wed, 10 Oct 2001 17:14:14 +0000
Subject: Re: PHP + Apache Authentification
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70704@lists.php.net to get a copy of this message
There is a module for APAche for authorization using user/passes stored in mysql. Maybe that will suit your needs. -- Andrey Hristov Web Developer IcyGEN Corporation BALANCED SOLUTIONS http://www.icygen.com On Wednesday 10 October 2001 19:09, you wrote: > Hi all, I have a site at http://www.somehost.com with an index.html page as > a starting point. This page have a form with a input text for login and a > password input for password, when I click on the 'submit' button then I do > a POST for a /secure/check_user.php file which look up this info in a mysql > database, if the login and password aren't valid I do a header('HTTP/1.0 > 401 Unauthorized') call and a box appear asking for login and passowrd, but > if the login and password are valid, then I do a header('Location: > main.php') call to access the main menu. /secure/ is a .htaccess protected > directory but when I get this page a box prompt me for a login and password > values, so my cuestion is, how can pass the values of the text boxes of > index.html directly to Apache so Apache don't ask me for them? I need a > secure directory with apache so unauthorized people can't reach files > directly like images o plain text files. > > And a second question: after I get access to /secure/ I want to enable a > 'Logout' button, because if I return to the index.html page and I put > another login and password, even an invalid one I still login as the first > person. Thank's for your help. ---------------------------------------- Content-Type: application/pgp-signature; charset="iso-8859-1"; name="Attachment: 1" Content-Transfer-Encoding: 7bit Content-Description: ----------------------------------------

« previous php.general (#70704) next »