I have pages which redirect the user if their session variable == 0
I have noticed a problem when the user logs in with an invalid username or password, here is my code;
Code: Select all
} else {
header ("location: http://www.something.com/login.php");
exit();I get the following error;
Warning: Cannot modify header information - headers already sent by (output started at C:\Audit\checkuser.php:11) in C:\Audit\checkuser.php on line 337
Any ideas?