User Management: Simple Authentication Class
Mark Davidson (contact me)
This class can be used to authenticate site users.
It looks up an user and password in array with all authorized users.
If the user exists and the password is correct, it sets two cookies, one for the user and another for the password, to start an authenticated session.
The class may also invalidate the authentication by forcing the user and password cookies to expire.
Click here for detailed information about this class on phpclasses.org