This package can be used to authenticate users against a MySQL database of user records.
It can verify whether there is a record for an active user given the user name and password.
If the authentication succeeds, it creates a record for a new session in another database table.
The new session identifier is set to a session cookie. This cookie can be verified in subsequent accesses to determine whether the user was previously authenticated and the session did not expire.