警告:session_start() [function.session-start]:无法发送会话缓存限制器 - 标头
已经发送(输出开始于 /home/scalepro/public_html/Admin ......................实际上没有空间和输出但仍然显示上述错误消息。
这是代码:
<?php
ob_start();session_start();
?>
<html>
<head>
</head>
<body>
<?php
require_once('../../Admin Panel/db.php');
if(isset($_POST['email']) && !empty($_POST['email']) && isset($_POST['password']) && !empty($_POST['password']))
{
$email = $_POST['email'];
$password = $_POST['password'];
$query="SELECT RemoteEmployeeFullName, RemoteEmployeeEmail, RemoteEmployeePassword FROM remoteemployees WHERE RemoteEmployeeEmail='".$email."' AND RemoteEmployeePassword='".$password."'";
$queryrun=$connection->query($query);
if($queryrun->num_rows > 0)
{
$_SESSION['email']=$RemoteEmployeeFullName;
echo '<META HTTP-EQUIV="Refresh" Content="0; URL=REPLists.php">';
exit();
}
else
{
echo 'Email: <b>'.$email. '</b> or Password <b>'. $password.'</b> Is Not Typed Correctly Try Again Please!.';
echo '<META HTTP-EQUIV="Refresh" Content="5; URL= ../../spd/myaccount.php">';
exit();
}
}
else
{
echo '<META HTTP-EQUIV="Refresh" Content="5; URL= home/scalepro/public_html/spd/myaccount.php">';
exit();
}?>
</body>
</html>