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

[eluser]carlos hernan[/eluser]
Hello everybody,

I have a question regarding the handling of the session setup I have is the following;

Code:
$config['sess_cookie_name']= 'ci_session';
$config['sess_expiration']= 4200;
$config['sess_encrypt_cookie']    = FALSE;
$config['sess_use_database']    = FALSE;
$config['sess_table_name']= 'ci_sessions';
$config['sess_match_ip']= FALSE;
$config['sess_match_useragent']    = TRUE;
$config['sess_time_to_update']     = 300;

I want to log on to a method of my class and not properly in the constructor of the driver but when it went through me url to another controller that generates an error is as follows;


Code:
Severity: Notice
Message: Undefined property: Usuario::$session
Filename: sesion/usuario.php
Line Number: 18

I do is that after the start of the qualification session,

Code:
function inicio ()
    {
            extract($_POST);
        $clave = md5($clave);
            $this->load->model('bd_sesion','base','panama');
                $paso = $this->base->validar ($usuario,$clave);
        if ($paso != false)
                 {
                    $this->load->library('session');
            $campo = array (
                        'user' => $paso->id_user,
                       'name' => $paso->name
                                  );
                   $this->session->set_userdata($campo);
                 }
         }


is valid on working like ?
from hand to thank you for the help




Theme © iAndrew 2016 - Forum software by © MyBB