Welcome Guest, Not a member yet? Register   Sign In
Basic session Problem
#3

[eluser]ajay009ajay[/eluser]
Yes i read it properly and here is my implementation

if($query->num_rows() > 0 ){

$row = $query->row();
$id=$row->id;

$this->session->set_userdata($id); // Need to understand here //


$session_id = $this->session->userdata('session_id'); // Need to understand here

echo $session_id;
echo "aaaaaaaaaaaaaaaaaaaaaaaa";

}

I want to enable session when if statement will be true.
Am i doing ok?


Messages In This Thread
Basic session Problem - by El Forum - 09-03-2009, 03:01 AM
Basic session Problem - by El Forum - 09-03-2009, 03:02 AM
Basic session Problem - by El Forum - 09-03-2009, 03:19 AM
Basic session Problem - by El Forum - 09-03-2009, 03:28 AM
Basic session Problem - by El Forum - 09-03-2009, 06:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB