title: Codeigniter how to get userid after login
body: <p>I have successfully created a registration and login system.<br>
  I have used useremail and password in the login form and I want to display the username and other properties related to that logged in user.</p>
  
  <p>What are the simplest and best practices to get the userid after a login in codeigniter?</p>