SMK PHP Authentication Class 1.0.1 reviewDownload
SMK PHP Authentication Class package can be used to authenticate users against a MySQL database of user records. It can verify whe
SMK PHP Authentication Class 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.
Import the "script.sql" in your MySQL Database (It adds a default user "Testman", password "t")
Alter the db.inc.php accourding to your system setup. Please adjust the SESSION timeout since it is maybe to high for you.
Build a login page similar to my example "login.php". you should include the two files
in all the "registered only" pages include "require_once('auth.php');" on top. Please check "index.php"
What's New in This Release:
A new behaviour option for session timeout was added.
By setting or unsetting the _TIMEOUT_ABSOLUTE constant in "db.inc.php" you can determine if the Session timeout is relative to the login time or relative to last user activity (page reload or sumbision).
SMK PHP Authentication Class 1.0.1 keywords