• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.