Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter lost my session
#7

[eluser]Lokut Da[/eluser]
Hi again...

I checked the database session and I continue with the same problem Sad

I writed the next code in my controller:

Code:
public function index()
    {
        $addDatos = array( 'usuario' => array('id'=>1, 'nombre'=>'Androu Fallou Da Locu', 'identidad'=>'2222222', 'nick'=>'Locut Da', 'oficina'=>'Seed' ), 'makemake' => 1, 'mekemeke' => 1, 'mikemike' => 1, 'mokemoke' => 1, 'mukemuke' => 1, 'fay' => 1, 'fey' => 1, 'fiy' => 1, 'foy' => 1, 'fuy' => 1, 'dad' => 1, 'ded' => 1, 'did' => 1, 'dod' => 1, 'dud' => 1, 'tat' => 1, 'tet' => 1, 'tit' => 1, 'tot' => 1, 'tut' => 1 );

        //inicializar el array en una sesión de CI
        $this->session->set_userdata('usuarioLogin', $addDatos);

        echo '<pre>'.print_r($this->session->userdata('usuarioLogin'), true).'</pre>';

        $this->load->view('probando_index');
    }

When I do update on my browser on index page, I can see the result:

Code:
Array
(
    [usuario] => Array
        (
            [id] => 1
            [nombre] => Androu Fallou Da Locu
            [identidad] => 2222222
            [nick] => Locut Da
            [oficina] => Seed
        )

    [makemake] => 1
    [mekemeke] => 1
    [mikemike] => 1
    [mokemoke] => 1
    [mukemuke] => 1
    [fay] => 1
    [fey] => 1
    [fiy] => 1
    [foy] => 1
    [fuy] => 1
    [dad] => 1
    [ded] => 1
    [did] => 1
    [dod] => 1
    [dud] => 1
    [tat] => 1
    [tet] => 1
    [tit] => 1
    [tot] => 1
    [tut] => 1
)

But if I change to the page "procesar.php":

Code:
public function procesar()
    {
        echo '<pre>'.print_r($this->session->userdata('usuarioLogin'), true).'</pre>';
    }

I can't see my session array Sad.

What do u think?

Regards.


Messages In This Thread
CodeIgniter lost my session - by El Forum - 08-23-2010, 04:42 PM
CodeIgniter lost my session - by El Forum - 08-24-2010, 03:39 PM
CodeIgniter lost my session - by El Forum - 08-24-2010, 11:23 PM
CodeIgniter lost my session - by El Forum - 08-26-2010, 01:38 AM
CodeIgniter lost my session - by El Forum - 08-26-2010, 08:55 AM
CodeIgniter lost my session - by El Forum - 08-26-2010, 09:55 AM
CodeIgniter lost my session - by El Forum - 08-26-2010, 11:07 AM
CodeIgniter lost my session - by El Forum - 08-26-2010, 11:54 AM
CodeIgniter lost my session - by El Forum - 08-26-2010, 05:16 PM
CodeIgniter lost my session - by El Forum - 08-26-2010, 05:24 PM
CodeIgniter lost my session - by El Forum - 08-27-2010, 02:17 AM
CodeIgniter lost my session - by El Forum - 08-27-2010, 10:16 AM
CodeIgniter lost my session - by El Forum - 08-27-2010, 12:13 PM
CodeIgniter lost my session - by El Forum - 08-27-2010, 01:28 PM
CodeIgniter lost my session - by El Forum - 08-27-2010, 01:55 PM
CodeIgniter lost my session - by El Forum - 08-27-2010, 05:30 PM
CodeIgniter lost my session - by El Forum - 09-01-2010, 11:43 AM
CodeIgniter lost my session - by El Forum - 09-01-2010, 01:16 PM
CodeIgniter lost my session - by El Forum - 09-01-2010, 01:24 PM
CodeIgniter lost my session - by El Forum - 09-01-2010, 01:37 PM
CodeIgniter lost my session - by El Forum - 09-01-2010, 04:12 PM
CodeIgniter lost my session - by El Forum - 09-02-2010, 08:04 AM
CodeIgniter lost my session - by El Forum - 09-02-2010, 08:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB