Click to See Complete Forum and Search --> : javascript password login


colincharlton
01-22-2003, 11:24 AM
I am a complete novice so please bear with me.

I have downloaded a javascript password script (Multiple Users).

The script works fine.

My problem is that when I am online and looking at this log-in page, if I go view sourc in the browser, it displays all the script, which gives details of the username and password.

I am obviously doing something wrong as anyone who trys to login only has to do the same.

Also, once I am logged-in to the page if I bookmark this page, next time I want to go there I can just load this URL in and it bypasses the log-in page.

What am I doing wrong

Thanks

pyro
01-22-2003, 11:27 AM
The only thing you are doing wrong is using javascript for password protection. There is no way that it is going to provide you with anything but very minimal security. For better security, you will need to use some sort of server side language. I explain how to do it with PHP here. http://forums.webdeveloper.com/showthread.php?s=&threadid=2387