Welcome Guest, Not a member yet? Register   Sign In
isLogged in one Controller?
#4

[eluser]steelaz[/eluser]
I would write this the other way around:

Code:
if ( ! $this->session->userdata('logged_in')
{
    // Set session error message

    // Redirect
    redirect('auth/login');
}

// Method code


Messages In This Thread
isLogged in one Controller? - by El Forum - 07-16-2011, 06:13 PM
isLogged in one Controller? - by El Forum - 07-16-2011, 09:38 PM
isLogged in one Controller? - by El Forum - 07-17-2011, 02:39 PM
isLogged in one Controller? - by El Forum - 07-18-2011, 02:59 AM
isLogged in one Controller? - by El Forum - 07-18-2011, 07:52 AM
isLogged in one Controller? - by El Forum - 07-18-2011, 08:01 AM
isLogged in one Controller? - by El Forum - 07-18-2011, 08:03 AM
isLogged in one Controller? - by El Forum - 07-18-2011, 08:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB