Welcome Guest, Not a member yet? Register   Sign In
Authentication checking
#6

[eluser]JamieBarton[/eluser]
I'd create a MY_Controller.php file which contains perhaps:

Code:
public function is_logged_in() {
  return $this->auth->current_user();
}

Then you'd have in the auth library the logic behind that, that would check if the session existed for that for user, if not it would return FALSE.


Messages In This Thread
Authentication checking - by El Forum - 06-22-2012, 08:26 AM
Authentication checking - by El Forum - 06-22-2012, 08:28 AM
Authentication checking - by El Forum - 06-22-2012, 08:39 AM
Authentication checking - by El Forum - 06-23-2012, 08:30 AM
Authentication checking - by El Forum - 06-25-2012, 01:40 AM
Authentication checking - by El Forum - 06-26-2012, 08:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB