Forum Moderators: phranque
i am working on an authentication system where i would like to create my own html login page.
thanks in advance.
Look into database authentication methods (or even text files would work) with such languages as ASP, JSP, and PhP.
Here you create a simple HTML form and validate the input fields the user sends. If valid, the user enters. If not, they go away.
Watch out for any client-side process though - all validation needs to be server side.
to handle authentication to access every page under a directory would be a lot of unnecessary work if htaccess can do that for me!
thanks in advance
if i have a directory structured site with hundreds of web pages, what would stop a user directly typing a url into their browser and going to a page deep down in the directory, bypassing the login page? don't i need htaccess to stop that?
otherwise if i maintain a list of valid users, with ip address, won't i have to check this access table, using ssi or something similar, every time they request a new page?
sorry if i'm asking dumb questions but authentication is new to me.
You might want to take a look at these:
[httpd.apache.org...]
[httpd.apache.org...]
In the second article:
How can I change what the password box looks like?
Unfortunately, these things are features of the browser, and cannot be controlled from the server side. If you want the login to look different, then you will need to implement your own authentication scheme. There is no way to change what this login box looks like if you are using basic authentication.
I personally have found that Apache::AuthCookie provides me with a better alternative. You can find the good stuff about it here:
[perldoc.com...]
Just another reason why I can't understand how anyone lives without mod_perl in their apache installation.
If they jump to a page by typing the URL, the application.php script checks for their login session, if it doesn't exist, forces them to the login script.