Databases: Login Class
Alexey Shomin (contact me)
This class can be used to authenticate users with records in a MySQL database table.
It can present an HTML form to submit the user name and password when the user is not yet authenticated.
The class verifies the user credentials against records of a MySQL database table.
If the user is authenticated successfully, the class sets some session variables with the user details.
The MySQL database table fields to check are configurable.
Click here for detailed information about this class on phpclasses.org