computel Posted July 23, 2010 Share Posted July 23, 2010 logout.php has errors and creates an error_log file Here is the error_log file [22-Jul-2010 19:16:12] PHP Warning: Wrong parameter count for session_unregister() in /home/turnkey/public_html/gamecheats1/logout.php on line 11 [22-Jul-2010 19:16:12] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/turnkey/public_html/gamecheats1/logout.php:11) in /home/turnkey/public_html/gamecheats1/logout.php on line 15 I removed line 11 and the error_log file isn't created. is this an ok fix or do I need to do something else? This is the logout.php file code below. <? if(empty($_SESSION[AgentID])) { header("location:index.php"); } session_start(); session_unset(); session_unregister(); session_destroy(); header("location:index.php"); ?> Thanks Link to comment https://forums.phpfreaks.com/topic/208602-logoutphp-has-errors-and-creates-an-errorlog-file/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.