Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Using Ion Auth to secure website section
#2

Make a constructor and try this..

Code:
public function __construct() {
        parent::__construct();
        if (!$this->ion_auth->logged_in()) // Check to see if user is logged in
        {
            redirect('login/index');
        }
        
}
Reply


Messages In This Thread
RE: Using Ion Auth to secure website section - by tapan.thapa - 11-13-2014, 09:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB