Jump to content
php.lv forumi
Sign in to follow this  
Frozen Life

Logout nestrādā.

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 :)

Share this post


Link to post
Share on other sites

Ar session start gan tur nav nekāda sakara...

 

Gan jau kaut kas pirms tam tike izvadīts index failā.

Share this post


Link to post
Share on other sites

Ar session start gan tur nav nekāda sakara...

 

Gan jau kaut kas pirms tam tike izvadīts index failā.

Bet tas man palīdzēja,skatījos google daudzi rakstīja forumos.

Edited by gta1151

Share this post


Link to post
Share on other sites

Tu arī varētu izlasīt to linku.

 

Vai Tev zobu iztīrīšana palīdz pret galvassāpēm? =]

Edited by daGrevis

Share this post


Link to post
Share on other sites

Briedis jau ir TIK dusmīgs, ka smaidiņus liek kā attēlus! =D Uzmanās! =]

Share this post


Link to post
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...
Sign in to follow this  

×
×
  • Create New...