Consider the following code:
function authenticate(){
$this->session->set_userdata('logged_in', true);
}
How do I return this users session_id from the authenticate
function? It's not available from the session class until the page is refreshed.