Welcome Guest, Not a member yet? Register   Sign In
help with boolean
#1

[eluser]KrizzAngel[/eluser]
im really confused. i know im a noob XD anyways can u guys help me with this:
Quote:function checker()
{
$is_logged_in = $this->session->userdata('is_logged_in');
if(!isset($is_logged_in) || $is_logged_in != true)
{
return true;
}

}
i made that function but i dont know how to use it to my index() and other page lol.. what i want to happen is if a user try to access certain page it will redirect to login(home page) if user is not logged in and on the other hand i dont want to access home page if the user is still logged in.


Messages In This Thread
help with boolean - by El Forum - 01-21-2010, 09:13 PM
help with boolean - by El Forum - 01-21-2010, 11:04 PM
help with boolean - by El Forum - 01-22-2010, 02:01 AM
help with boolean - by El Forum - 01-22-2010, 03:32 AM
help with boolean - by El Forum - 01-22-2010, 03:51 AM
help with boolean - by El Forum - 01-22-2010, 05:30 AM
help with boolean - by El Forum - 01-22-2010, 07:04 AM
help with boolean - by El Forum - 01-22-2010, 07:14 AM
help with boolean - by El Forum - 01-22-2010, 10:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB