<?php
include 'ProcessDAO.php';
$dest="";
if(isset($_POST['login'])){
session_start(); // i get an error in this line !!
$_SESSION['status']='online';
$_SESSION['breadcrumb']='home';
$pro = new ProcessDAO();
$dest = $pro->LogIn($_POST['username'],$_POST['password']);
}else{
session_start();
$dest ="Location: ../index.php";
session_destroy();
}
header($dest);
?>
guyss can you help me out because in my Login.PHP file when i login i always get this error .
** Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\IPMS\process\ProcessDAO.php:1) in C:\xampp\htdocs\IPMS\process\login.php on line 5**