[eluser]CroNiX[/eluser]
Code:
$is_logged_in = $this->session->userdata('is_logged_in');
//if its not set and if not true, redirect to public pages
if(!isset($is_logged_in) || $is_logged_in !== TRUE)
{
redirect('web_public/index');
die();
}
You might want to reread the session user guide on what the class will return if a session variable does NOT exist. Your code is checking to see if the variable is set, which it always will be because the function returns boolean FALSE if it doesn't exist.