manuthalasseril manuthalasseril - 1 year ago 102
PHP Question

How to retrieve a particular session value in codeigniter?

I would set a session value in codeigniter

$sess_array = array(
'id' => $row->Login_Id,
'username' => $row->Login_Name,
'postid'=> $row->Fk_Post_Id,
$CI->session->set_userdata('logged_in', $sess_array);

Then how to retrieve a particular (say - id) session value . I tried these


but fails.

Answer Source

Use the array syntax for this. Like,

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download