Click to See Complete Forum and Search --> : Question on Passwords
SaLtMaN
11-25-2003, 01:09 PM
I would like a link from my website to open a password box, so if I enter the correct one, I can go to a specific page. I don't want the password to be shown in the source. If this is in the wrong forum, then please move it to a specific area that can do this, I just thought ASP could do this easily. Thanks for any help.
CardboardHammer
11-25-2003, 02:10 PM
Submit the password to the server. If it matches, show the secured content of the page, else show an error message.
Note that if you're not using SSL, the password will be in the clear over the wire.
PeOfEo
11-25-2003, 05:30 PM
If you are using a data base you can match the pass with the username and pass in the data base and even create a login using session variables you set. But to do the password box (you can open a password box like a new window or something with java script of cource, but that sort of defeats the purpose of using a server side language for functionality), your best bet would probably be htaccess. I am not the best authority on this and it would probably fall in the general forum better. If you want me to move it there I could but I see no reason to at this point. Ill tell you what I know about htaccess. It is fine for one or two users to use because it is very secure and does not require a data base. But it does make it a pain to do logins or have many users. HTACCESS would would probably mean you would need direct access to the server though or some way setup for you to do it remotly.