Jump to content

logout.php has errors and creates an error.log file


computel

Recommended Posts

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.