12-11-2008, 01:01 PM
|
#2 (permalink)
|
|
The Addict
Join Date: Nov 2007
Location: USA
Posts: 256
Thanks: 7
|
It seems to me that you are setting the password with encryption into the session here
$_SESSION['password'] = md5($_POST['password']);
and then trying to check a variable called password here.
if($num != "0" && $password == $row['Password']) {
You do this in the register as well. This is the problem. There is no need to store that stuff in the session for now just setting it to the variable would work. Otherwise your logic seems good.
|
|
|
|