php - How to get in Apache password protected directories without showing popup login -


I have read how the Apache password is simplified directly from DirectRelease through the diricate link:

< Pre> http: // username: password@yoursite.com/protected_dir/

which works in FF / Chrome / Safari, and clearly IE Not at 7! :)

Do you know how I can enter a PSW protected directory which may use a login form and GET / Post to get it ?

Do I need to set a session before I come in, or can I simply pass a protected directory as GET / POST parameter in the form of a user and password? (In this final case, what do I use the name of the parameters?)

Thank you!

You are referring to HTTP authentication, and URLs are not handled with parameters or post data.

An HTTP client should handle it directly.

Now, if you have no control over the password protected directory, then you can not do anything like that.
If you have control and want to provide an HTML login form, then you have to change the method of authentication and, instead of depending on HTTP, authentication, you do this via URL parameters or post data. Can not use a different authentication type module (essentially third-party one, because Apache supports HTTP Basic and Digest authentication only Ta), or more realistically, is authentication with PHP and managing a session.


Comments