Welcome Guest, Not a member yet? Register   Sign In
Deny dirrect access to a controller...
#8

[eluser]rvent[/eluser]
[quote author="GSV Sleeper Service" date="1233882696"]how about
Code:
...
$out = $this->hst_ldap_auth->hst_ldap_login($user, $pass);
if($out){
   $this->session->set_userdata('logged_in','true');
   redirect('/welcome', 'location');
}

and in your control_panel controller

function __construct(){
   if(!$this->session->userdata('logged_in'){
      echo "bugger off";
      //redirect to login
   }
}
[/quote]

Thanks..


Messages In This Thread
Deny dirrect access to a controller... - by El Forum - 02-05-2009, 11:46 AM
Deny dirrect access to a controller... - by El Forum - 02-05-2009, 11:58 AM
Deny dirrect access to a controller... - by El Forum - 02-05-2009, 12:09 PM
Deny dirrect access to a controller... - by El Forum - 02-05-2009, 12:38 PM
Deny dirrect access to a controller... - by El Forum - 02-05-2009, 12:44 PM
Deny dirrect access to a controller... - by El Forum - 02-05-2009, 01:02 PM
Deny dirrect access to a controller... - by El Forum - 02-05-2009, 01:11 PM
Deny dirrect access to a controller... - by El Forum - 02-05-2009, 02:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB