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