PHP:无法发送会话cookie错误

use*_*229 4 php session

我试图建立一个会话,我收到一个标题错误,据我所知,我告诉它在标题发送之前启动会话.这里的任何帮助都会有用.

<?php
ob_start();
session_start();
$_SESSION['active'] = 1;
ob_end_flush();
?>
<html>
<body>
2009c Christ Redeemer Catholic Church 
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

警告:session_start()[function.session-start]:无法发送会话cookie - 已经发送的标头(输出从/home/content/k/u/r/kuriomister/html/temp/church/index.php:1开始)在第3行的/home/content/k/u/r/kuriomister/html/temp/church/index.php中

警告:session_start()[function.session-start]:无法发送会话缓存限制器 - 已发送的标头(输出从/home/content/k/u/r/kuriomister/html/temp/church/index.php:1开始)在第3行的/home/content/k/u/r/kuriomister/html/temp/church/index.php中

Gum*_*mbo 9

如果使用UTF-8,请确保不使用BOM保存文件.