redirecting based on login credentials
Posted: Thu Aug 10, 2006 5:07 pm
Is there any possible pitfals when doing this:
instead of this:
Code: Select all
if(!$user->logged_in()){
// Redirect to login page
exit;
}
// Do logged in stuffCode: Select all
if($user->logged_in()){
// Do logged in stuff
}
else{
// Redirect to login page
}