Welcome Guest, Not a member yet? Register   Sign In
flexi auth - A user authentication library for CodeIgniter
#96

[eluser]Unknown[/eluser]
Question : I am using your product and everything works fine. Accept..

I have a grid (Wijmo) that calls a controller to get the data.
In the constructor of the controller I have this code.

Quote: if (!$this->input->is_ajax_request()) {
if (! $this->flexi_auth->is_logged_in())
{
// Set a custom error message.
$this->flexi_auth->set_error_message('You must login to access your climate zones.', TRUE);
$this->session->set_flashdata('message', $this->flexi_auth->get_messages());
redirect('auth');
}
}

Data is received. But after that I am automatically logged out...

What am I doing wrong ?


Messages In This Thread
flexi auth - A user authentication library for CodeIgniter - by El Forum - 11-01-2012, 01:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB