Aleksei
Новичок
Дата регистрации:
11.08.2013 09:35:25
Сообщений: 2
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at Z:\home\moi.local\www\index.php:1) in Z:\home\moi.local\www\start.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at Z:\home\moi.local\www\index.php:1) in Z:\home\moi.local\www\start.php on line 2
а при авторизации выходит:
Warning: Cannot modify header information - headers already sent by (output started at Z:\home\moi.local\www\auth.php:1) in Z:\home\moi.local\www\auth.php on line 11
код перепроверял дясять раз и не могу найти ошибку
require_once "start.php";
$login = htmlspecialchars($_POST["login"]);
$password = htmlspecialchars($_POST["password"]);
$password = md5($password);
if (checkUser($login, $password)) {
$_SESSION["login"] = $login;
$_SESSION["password"] = $password;
}
else $_SESSION["error_auth"] = 1;
header("location: ".$_SERVER["HTTP_REFERER"]);
exit;