When I add this code, I am not able to see source code with Firefox.
Can anyone tell me why please?
if (!isset($_SESSION['userid']) || $_SESSION['userid'] < 1){
$this->session->set_flashdata('error',"You must log in!");
redirect('welcome/verify','refresh');
}
This code is in the following controller.
class Dashboard extends Controller {
function Dashboard(){
parent::Controller();
session_start();
if (!isset($_SESSION['userid']) || $_SESSION['userid'] < 1){
$this->session->set_flashdata('error',"You must log in!");
redirect('welcome/verify','refresh');
}
}
--EDIT--
Whole page is blank. No HTML tags or content are seen.