Im trying to fix my login script, on my localhost it works but uploaded to my online test server, the logout is broken, I get this error:
Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in htdocs/logout.php on line 17
Warning: Cannot modify header information - headers already sent by (output started at htdocs/logout.php:17) in htdocs/logout.php on line 18
Warning: Cannot modify header information - headers already sent by (output started at htdocs/logout.php:17) in www/htdocs/logout.php on line 34
Not quite sure what could be causing it since it was working on my localhost, any ideas?
1 Answer