This was wrote as a basic model for authentication users for perhaps an admin section on a website. Its not Fort Knox but provides a basic and fairly secure method authentication. I just needed a ...
This was wrote as a basic model for authentication users for perhaps an admin section on a website. Its not Fort Knox but provides a basic and fairly secure method authentication. I just needed a little auth system to patch onto a few admin sections so maybe someone else can find this useful aswell. Feel free to modify the code and let me know if you have any comments. This may aswell help anyone whos learning Cookies/Authentication in PHP. The SQL Dump is in the sql folder and contains 2 tables. Once you have the DB details set in config.inc.php you can include the following in top of your pages to check for authentication : <? include_once("inc/au th.inc.php"); $user = _check_auth($_COOKIE); ?> Visit the URL for a demo aswell if you wish. Greets x0x
Version 0.0.1 Platform Windows ,FreeBSD ,Sun ,Linux