PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Plötzlich Fehler bei login & logout



sterni
25.10.2008, 22:33
Hallo bekomme auf einmal diese Fehler beim einlogen


Warning: Cannot modify header information - headers already sent by (output started at /index.php:2) in /lib/session.lib.php on line 61

Warning: Cannot modify header information - headers already sent by (output started at /index.php:2) in /lib/session.lib.php on line 62

Warning: Cannot modify header information - headers already sent by (output started at /index.php:2) in /lib/session.lib.php on line 63

Warning: Cannot modify header information - headers already sent by (output started at /index.php:2) in /lib/session.lib.php on line 68



und beim Ausloggen diese


Warning: Cannot modify header information - headers already sent by (output started at /index.php:2) in /lib/session.lib.php on line 109

Warning: Cannot modify header information - headers already sent by (output started at //index.php:2) in /lib/session.lib.php on line 110

Warning: Cannot modify header information - headers already sent by (output started at /index.php:2) in /lib/session.lib.php on line 111

Warning: Cannot modify header information - headers already sent by (output started at /index.php:2) in /lib/session.lib.php on line 115

Xenon
25.10.2008, 23:11
Lösche doch mal bitte die leerzeilen die in diesen zeilen sich befinden dann sollte es gehn :thumb:

sterni
25.10.2008, 23:22
Da gibt es nix das sin die zeilen 60 - 69

if ($_POST['autologin'] == 'true'){
setCookie('uid',$login_check['uid'],time()+86400*30);
setCookie('passwort',$login_check['passwort'],time()+86400*30);
setCookie('autologin','true',time()+86400*30);
}
$_SESSION['uid'] = $login_check['uid'];
$_SESSION['passwort'] = $login_check['passwort'];
$_SESSION['login'] = "true";
header ("location: ".$domain);
die();


und das 108 - 117


if ($_GET['logout'] == 'true') {
setCookie('uid','',time()-86400*30);
setCookie('passwort','',time()-86400*30);
setCookie('autologin','',time()-86400*30);
$_SESSION['uid'] = "";
$_SESSION['passwort'] = "";
$_SESSION['login'] = "";
header ("location: ".$domain);
die();
}

nur warum machen die cookie Abfragen diesen Fehler und was ist das

//index.php:2)


php:2 ????

Xenon
26.10.2008, 04:46
Schaue in die header.php , index.php ggf. und lösche dort alle leerzeilen

sterni
26.10.2008, 09:15
das es in einer leeren Zeile in der Index liegt wär ich nicht drauf gekommen
aber warum er dann die cookie zeilen Anzeigt verstehe ich nicht??

jpwfour
26.10.2008, 09:52
Musst du an sich nicht verstehen, Hauptsache der Fehler ist beseitigt :yes:

Solltest du dich zu dem Thema aber doch noch "weiterbilden" wollen:

http://webdesignblog.de/sonstiges/cannot-modify-header-information-headers-already-sent-gehasster-php-fehler/