09-14-2012, 12:35 AM
[eluser]esset[/eluser]
I have a very very strange behaviour which I'm unsure if it's even like this - but it's my feeling this is the case.
1. I have a basic login system. In my "MY_Controller" I check to see if the user is logged in using:
This works fine and I can be logged in for quite some time before I get logged out due to me not doing anything (inactivity).
2. I now enable "Hooks" and I have one hook that runs "post_controller".
3. I can now only idle for 3-4 mins on the site before that IF-statement runs and kicks the user out the site.
How odd is this? Any ideas what can be wrong?
Thank you so much
I have a very very strange behaviour which I'm unsure if it's even like this - but it's my feeling this is the case.
1. I have a basic login system. In my "MY_Controller" I check to see if the user is logged in using:
Code:
function is_logged_in()
{
if($this->session->userdata('logged_in') != "y")
{
$this->session->set_flashdata('flash_alert', "You've been logged out due to inactivity or are not allowed to access this page.");
redirect(base_url());
}
}
This works fine and I can be logged in for quite some time before I get logged out due to me not doing anything (inactivity).
2. I now enable "Hooks" and I have one hook that runs "post_controller".
3. I can now only idle for 3-4 mins on the site before that IF-statement runs and kicks the user out the site.
How odd is this? Any ideas what can be wrong?
Thank you so much