PDA

View Full Version : Custom Authentication Required Page????



rbhatt
10-29-2008, 04:50 PM
Is it possible to create a custom authentication required page instead of the dialog box that pops up when i am trying to access a secure part of my site?
Thanks

felgall
10-29-2008, 07:06 PM
Only if you use a server side scripting language to do it within the web page.

The server doesn't have any way of overriding the browser default when someone tries to directly access a password protected folder.

rbhatt
10-29-2008, 07:08 PM
how would i do it through the server side way?

felgall
10-30-2008, 12:21 AM
I have an example of a members only section written in PHP at http://felgall.com/memsamp/

The join link at the bottom will allow you to create a login and password to see exactly what it looks like when you control logins from within the page itself using PHP, mySQL, and sessions.

rbhatt
10-30-2008, 08:36 AM
OK so i would like put a log in page as the index for that directory instead of password protecting the directory through bluehost. That index would have something similar to what you have.. im guessing

felgall
10-30-2008, 12:13 PM
Yes and the all the other pages need code in them to test if the person has logged in already and if not to redirect them back to the login page.

rbhatt
10-30-2008, 06:16 PM
im kinda new to the authentication and security thing... would you mind helping me out?