Welcome Guest, Not a member yet? Register   Sign In
session problem
#4

[eluser]ciGR[/eluser]
For the last question you should save an array to your session, for example
Code:
$user = Array(
    'username'=>'ciGR',
    'password'=>'1234test'
    );        
$this->session->set_userdata('user',$user);

and for get the data in array you can use the
Code:
$user = $this->session->userdata('user');
print_r($user);//check the result
now you have again the array.


Messages In This Thread
session problem - by El Forum - 03-27-2010, 06:04 AM
session problem - by El Forum - 03-27-2010, 06:43 AM
session problem - by El Forum - 03-27-2010, 07:02 AM
session problem - by El Forum - 03-27-2010, 07:18 AM
session problem - by El Forum - 03-27-2010, 10:15 AM
session problem - by El Forum - 03-27-2010, 10:42 AM
session problem - by El Forum - 03-27-2010, 12:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB