title: How to store session data into database in Codeigniter?
body: <p>In this case I have 2 tables in database "users" and "posts".
  First table extends basic user data (id, firstname, lastname, username, mail, passwords etc...) Second one is about posts (id, title, text, author etc...)</p>
  
  <p>So when user  gonna create a post, he need to fill title field and text field, author field should be filled with username pulled directly from session and stored it to db.</p>