Sorry I've been gone for so long, I've been working on a ton of various projects.
One of those projects no longer needs a huge database of members for a login script. In fact, only one section still needs password protection for only one account. I've found a couple of scripts that use a hardcoded password with cookies in the following format:
form
input password
submit
php checks password against predefined $password variable
if the submitted password = $password, cookie is created, user is logged in.
password protected pages check if cookie exists, redirects if not.
I'm pretty sure that explains enough, but let me know if you need more.
What I'm wondering is how secure this is. From what I understand, php files can only be read if you download them via ftp, so there should be no way for someone to see what I've defined the password variable as, correct?
Also, from what I've read, cookies & sessions both have potential security flaws, so neither is 100% secure. The only computers that will be used to log in to area require passwords to login, so I'm hoping cookies will be an ok choice for this.
Thanks in advance!
-Jorge