I am building a user authentication system from the PHP5 & MySQL Bible, and I am getting some problems after the login script.
Here is the error.
Warning: Cannot modify header information - headers already sent by (output started at /login_funcs.inc:41) in /login_funcs.inc on line 80
Warning: Cannot modify header information - headers already sent by (output started at /login_funcs.inc:41) in /login_funcs.inc on line 81
Warning: Cannot modify header information - headers already sent by (output started at /login_funcs.inc:41) in /login.inc on line 26
I can tell you that in 'login_funcs.inc' line 80 and 81 are both setting cookies, and that line 26 in 'login.php' is trying to redirect using header("Location: index.php");
I don't know what the :41 means, or why this is throwing up a problem.
If anyone can shed some light then great. Thanks
Or does anyone else know of a decent user authentication script that i can implement instead