[eluser]ninjayan[/eluser]
Hi everyone! So its me again.
I have this code in my controller
Code:
public function __construct() {
parent::__construct();
$this->output->enable_profiler(TRUE);
$this->clear_cache();
if ($this->session->userdata('is_logged_in') && ($this->session->userdata('is_logged_in') == 1)) {
redirect('site/dashboard');
}
}
When I try to login, nothing works but if I remove
Code:
$this->output->enable_profiler(TRUE);
It works fine. How can I fix that? What is the problem?