<?php
session_start(); // start session cookies
require("Login.class.php"); // pull in file
$login = new Login; // create object login
$login->authorize(); // make user login
?><?php
// username to login into page
define('LOGIN_USER', "admin");
// password to login into page
define('LOGIN_PASS', "secret");
?>
Comments
Neat!
Solid looking script! Sessions and remembering the user are crucial. Looks great.
I have integrated your V3 wrapper class script with phpuserclass.com and it seems to work really well. What I like about it is how it integrates with a MySQL database to check if a user is logged in. Perhaps you can expand on that code as well, allowing for an even tighter integration with your wrapper class?
Keep up the good work!
Answer
I went ahead and released a BETA version of my PHP User Login and Management for those interested in playing with it.