Jump to content
php.lv forumi

Logout nestrādā.


Frozen Life

Recommended Posts

Sveiki atkal man ir problēma ar login :( Bet šoreiz tāda intresanta.

Tā, tad reku ir errors 1.

Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\index.php:11) in D:\xampp\htdocs\inc\login2.php on line 8

Un reku 2.

Warning: Cannot modify header information - headers already sent by (output started at D:\xampp\htdocs\index.php:11) in D:\xampp\htdocs\inc\login2.php on line 10

1. erros atkārtojas vairākas reizes, bet otrais tikai 1x

Reku ir scripts

 

<?

if(isset($_GET['logout']))
{
 foreach($_COOKIE as $cookie => $value)
 {
   setcookie($cookie, -1, time()-9999999);
 }
header("location: http://84.237.204.82");
}
if(!isLoggedIn())
{
?>

Un 8 kļūda ir setcookie($cookie, -1, time()-9999999);

Un 10. header("location: http://84.237.204.82");

 

 

P.S UTF8 BOM jau ir uzlikts :)

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...