kann mir wer helfen, ich weis ned wieso das auf meinem .net server nicht funzt, aber aufm pc mit xampp funzts, und auf nem testserver funzt es auch.
Kann es an den server php configs liegen oder was kann da sein.
HIer sind mal die Fehler:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/httpd/vhosts/new-ds.net/httpdocs/login.php:2) in /home/httpd/vhosts/new-ds.net/httpdocs/login.php on line 73
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/new-ds.net/httpdocs/login.php:2) in /home/httpd/vhosts/new-ds.net/httpdocs/login.php on line 73
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/new-ds.net/httpdocs/login.php:2) in /home/httpd/vhosts/new-ds.net/httpdocs/login.php on line 78
hier der code von lienie 61 bis liene 82
Kann es an den server php configs liegen oder was kann da sein.
HIer sind mal die Fehler:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/httpd/vhosts/new-ds.net/httpdocs/login.php:2) in /home/httpd/vhosts/new-ds.net/httpdocs/login.php on line 73
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/new-ds.net/httpdocs/login.php:2) in /home/httpd/vhosts/new-ds.net/httpdocs/login.php on line 73
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/new-ds.net/httpdocs/login.php:2) in /home/httpd/vhosts/new-ds.net/httpdocs/login.php on line 78
hier der code von lienie 61 bis liene 82
PHP-Code:
{
if ($auto == "ON"){
setcookie("user", $user, time()+3600*24*356*10);
setcookie("pass", $pass, time()+3600*24*356*10);
setcookie("id", $id, time()+3600*24*356*10);
session_start();
$_SESSION["user"] = "$user";
$_SESSION["id"] = "$id";
$_SESSION["pass"] = "$pass";
$_SESSION["verified"] = true;
header("Location: spiel/spiel.php?pass=$pass&id=$id");
} else {
session_start();
$_SESSION["user"] = "$user";
$_SESSION["id"] = "$id";
$_SESSION["pass"] = "$pass";
$_SESSION["verified"] = true;
header("Location: spiel/spiel.php?pass=$pass&id=$id");
}
}
}
Kommentar