phpbar.de logo

Mailinglisten-Archive

[php] fehlermeldung bei session verwendung

[php] fehlermeldung bei session verwendung

Sebastian Wolfgarten sebastian.wolfgarten_(at)_gmx.net
Fri, 11 Aug 2000 22:32:32 +0200


Hallo Liste,

was hat die nachfolgende Fehlermeldung zu bedeuten und wie bekomme ich
die in den Griff?

Warning: Cannot send session cookie - headers already sent by (output
started at
/usr/local/httpd/htdocs/test/main.php:2) in
/usr/local/httpd/htdocs/test/main.php on line 8

Warning: Cannot send session cache limiter - headers already sent by (output
started at /usr/local/httpd/htdocs/test/main.php:2) in
/usr/local/httpd/htdocs/test/main.php on line 8

Warning: Cannot add header information - headers already sent by (output
started at
/usr/local/httpd/htdocs/test/main.php:2) in
/usr/local/httpd/htdocs/test/main.php on line 9


<codeschnipsel>
$username = $benutzername;
session_register("username");
Header("Location: test.php");
</codeschnipsel>

<codeschnipsel von test.php>
session_start();
</codeschnipsel>



Gruß
Seb



php::bar PHP Wiki   -   Listenarchive