Welcome Guest, Not a member yet? Register   Sign In
Session / Login help
#10

[eluser]gbd_dee[/eluser]
So I did some restructuring I have a login and logout controller (2 separate controllers)
here is my login controller

Code:
<?php

class Login extends CI_Controller {

    
    
    function Login()
    {
        parent::__construct();
    }
  
    
    public function index()
    {
        $this->is_logged_in();
        
    }//index
        
    public function is_logged_in()
    {
        
        $email = $this->Login_Model->getEmail();
        if($this->session->userdata('user_email') != $email)
        redirect(base_url(). 'User/login');
        else
           echo 'Logged in';
    }//is_logged_in
        
}


Messages In This Thread
Session / Login help - by El Forum - 04-30-2012, 03:13 PM
Session / Login help - by El Forum - 04-30-2012, 03:14 PM
Session / Login help - by El Forum - 04-30-2012, 03:18 PM
Session / Login help - by El Forum - 04-30-2012, 03:23 PM
Session / Login help - by El Forum - 04-30-2012, 03:30 PM
Session / Login help - by El Forum - 04-30-2012, 06:18 PM
Session / Login help - by El Forum - 04-30-2012, 06:19 PM
Session / Login help - by El Forum - 04-30-2012, 06:27 PM
Session / Login help - by El Forum - 04-30-2012, 07:38 PM
Session / Login help - by El Forum - 04-30-2012, 10:18 PM
Session / Login help - by El Forum - 04-30-2012, 10:19 PM
Session / Login help - by El Forum - 04-30-2012, 10:20 PM
Session / Login help - by El Forum - 04-30-2012, 10:23 PM
Session / Login help - by El Forum - 04-30-2012, 11:18 PM
Session / Login help - by El Forum - 05-01-2012, 02:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB