[eluser]TheFuzzy0ne[/eluser]
I still don't understand why you need the session ID. What's wrong with:
Code:
$this->session->set_userdata('user_id', '12345');
Now that data is in the session and can be retrieved with:
Code:
$user_id = $this->session->userdata('user_id');
CodeIgniter takes care of everything for you. You don't even need to know the session ID.
Am I missing something obvious? I can't help but wonder, since I've never needed know the session ID before.