Welcome Guest, Not a member yet? Register   Sign In
Storing Array Data in CI Session
#4

[eluser]warrennz[/eluser]
Im not 100% on this but one of the DB Session handlers I used to use allowed you to do

Code:
$ar = array('user_id'=>900,
            'username'=>'John Doe');

$this->session->set_userdata('user_details',$ar);


$this->session->userdata('user_details','user_id'); //Return 900;

Is that the sorta thing you're after?


Messages In This Thread
Storing Array Data in CI Session - by El Forum - 04-24-2009, 10:30 AM
Storing Array Data in CI Session - by El Forum - 04-24-2009, 10:53 AM
Storing Array Data in CI Session - by El Forum - 04-24-2009, 11:16 AM
Storing Array Data in CI Session - by El Forum - 04-24-2009, 05:01 PM
Storing Array Data in CI Session - by El Forum - 04-25-2009, 12:34 AM
Storing Array Data in CI Session - by El Forum - 04-25-2009, 12:40 AM
Storing Array Data in CI Session - by El Forum - 04-25-2009, 04:10 AM
Storing Array Data in CI Session - by El Forum - 04-25-2009, 07:23 PM
Storing Array Data in CI Session - by El Forum - 04-26-2009, 11:29 PM
Storing Array Data in CI Session - by El Forum - 04-27-2009, 11:00 AM
Storing Array Data in CI Session - by El Forum - 02-26-2010, 08:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB