Forum Moderators: phranque
There are really two types of login systems that exist for websites: server level, and program level. The one that WebmasterWorld uses is a program level login system; that is, user management and authentication is handled by the program that runs the site.
Program level systems store the usernames and passwords in some type of data store; it could be a flat text file (comma delimited or something similar), a file system database (DB3, MS Access, etc.), a typical "real" database (such as MySQL, Oracle, SQL Server, etc.), or a remote or system authentication server (/etc/passwd, LDAP, etc.).
When a program level login system receives a username and password for authentication, it verifies the login details with the authentication system, then outputs whatever you tell it to based on login acceptance or failure.
Can you be a little more specific about what you'd like to do? That way we could recommend a narrow solution for you.
The easiest way possible is a good start at least to have a better understanding of how it works!
I cant give more because I am still learning. Sorry
If you could give any help it would be appreciated very much.
Thanks Scott Coker
$username="doug";
$password="guess";
$entered_username=(whatever they enter into the form);
$entered_password=(whatever they enter into the form);
if ($entered_username == $username && $entered_password == $password) {
//go to desired site
}
Also, you could just password protect a directory, such as 'login'. So when a user types in http*//www.yoursite.com/login they get prompted for a username and password. Then create login.htm which has links to your other sites and put the page in the 'login' directory so when they login they see the links to your other sites.
There are a number of ways to do it, but if you read through the chapter it explains the why's and what's for almost any good login system.
Note that there are literally hundreds of resources around, I'm mneioning this one as I've got it on the desk next to me, and rather like it's style ;-)
Robin