CHPT 12, pg 374 & 360
Hi, just a question:
If the user is already logged in, and he types in login.php in the address bar, he will be logged out.
This is because $_POST['submit'] will not be set (line 10 on the pg 360 script)
else{} will be run and the user will be logged out.
$_SESSION['username'] = '';
$_SESSION['logged'] = 0;
Any ideas how to solve this?
Thanks!
Gras Sang
|