Re: PHP + Apache Authentification
| From: | EDUMEXICO | Date: | Tue, 09 Oct 2001 18:58:21 +0000 |
| Subject: | Re: PHP + Apache Authentification | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70719@lists.php.net to get a copy of this message | ||
Sorry, I forget to tell you that I use that module. Cheers.
Andrey Hristov wrote:
> 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:
> ----------------------------------------
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Maribel Barradas Landa
Asistente de la Coordinación del Proyecto EDUMEXICO
Tel. (28) 17 86 87 y 17 73 80
Fax: (28) 18 64 13