Jump to content

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

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.