I like where you are going with this but the cookie implementation appears to be broken and your register function is currently broken as well. Is the latest master supposed to be a working checkout or are you in the middle or reworking things? Some things i noticed:
- register.php simply doesnt work i had to make the following changes to get it to work:
//If not, create new user
//if (!$testUserQ) {
if (($testUserQ == false) || (mysql_num_rows($testUserQ) == 0)) {
- logout.php simply doesnt work. Once logged in its impossible to logout without the session either timing out (didnt try to wait for this) or manually updateding/removing the timestamp in the webUser table. Also you use a meta refresh in logout and login but wouldnt a
header("Location: /index.php");
be nicer? Or something alike ?
Im curious who is doing your security audit? You mention that you are getting one done but no details about this.... this might be a good point to expand on since security with web apps are always difficult to get right. Also you might want to look into the webmin running on your server...if its v1.54, its vulnerable to an XSS attack that can result in root user priveleges for a remote attacker.