What is the best way for creating a multi-user (100+) login website, with each login controlling a part of the member page (a "Welcome Bob!" thing, for example)? PHPLib?
Just have a mySQL databaes called users and in there, have 3 different fields, an id, name, and password field.
Then, have a form so that the user can log into your site and display whatever message you wish to display.
When the user click the login button, you can run a PHP script to validate the username and password, and if it is the correct one, display whatever information you wish, if not, then alert them that they are not using the correct username and password.
Once they are logged in, start a session so that you don't have to pass around all of the variables to keep the user logged in if they wish to view different parts of your site.
Then, when the user logs out, destroy the session.
I would suggest you encrypt the password using the [tt]md5()[/tt] function in PHP.
It uses the md5 algorithm for encrypting the password so that your page will be a little more secure.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.