application/controllers/Auth.php
/**
     * Creates a session for an authenticated user.
     * 
     * @param type $username
     */
Creates a session for an authenticated user.

@param type $username
Creates a session for an authenticated user . @param type $username
private function createUserSession($userObject) {
        $sessionData = array(
            'user_id' => $userObject->id,
            'username' => $userObject->username,
            'first_name' => $userObject->first_name,
            'last_name' => $userObject->last_name,
            'email_address' => $userObject->email_address,
            'role' => $userObject->role,
            'logged_in' => TRUE
        );
        $this->session->set_userdata($sessionData);
    }
private function createUserSession ( $ userObject ) { $ sessionData = array ( 'user_id' => $ userObject -> id , 'username' => $ userObject -> username , 'first_name' => $ userObject -> first_name , 'last_name' => $ userObject -> last_name , 'email_address' => $ userObject -> email_address , 'role' => $ userObject -> role , 'logged_in' => TRUE ) ; $ this -> session -> set_userdata ( $ sessionData ) ; }
Creates a session for an authenticated user.
Creates a session for an authenticated user .