You are here: Using .htaccess for HTTP authentication. « All PHP « IT news, forums, messages
Using .htaccess for HTTP authentication.

Posted by Adam on 04/02/06 02:26

I'm a PHP newbie, so bear with me while I try to make sense.

I have a request from my friend to help him in using an .htaccess based
security, which is already setup to protect a directory on the server
(Red Hat Linux, Apache 1.3.33, PHP 4.3.10), and only allow authenticated
users to read pages in that directory.

I was trying to convince him to move to an MySQL/PHP session based
authentication, but that is not possible currently, and is considered
for the future.


Basically he wants to force the authentication through a form that users
can input their login information and checked against what they have
already in .htaccess and if the information is correct they will be
redirected to the page in the directory already protected by the
..htaccess without the browser's login dialog box, and if the information
is wrong then they would be asked to enter it again, without the
browser's box.

Can this be done?
I've read all the HTTP authentication tutorials that I have found, and
couldn't see something like this.

I would appreciate any help or clues.

Thank you.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация