login to apache via php

paries used Ask the Experts™
I am using .htaccess

what i would like to do i instead of the apache popup have a form that submits instead.

Is this possible?

I have found a function that reads the .htpasswd and validate username and password, but not sure what to do from there so that the .htaccess file see the user as logged in.

I hope i am making sense

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

This may help you to solve your issue . It uses a PHP authentication with .htpasswd file (without using .htaccess file)

Top Expert 2008
> so that the .htaccess file see the user as logged in.

That does not work. Either you authenticate via apache's auth modules, or php. If you choose the latter one, you've to make sure that every request of subpages/images etc. passes your php login/session.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial