title: Codeigniter - set/check session in every controller function
body: <p>i would need to use the domain and put it in a session, to retrieve some data out of the database. I can do this in my default controller, no problem with that.
  The problem is when people link directly to a specific controller like: www.mywebsite/mycontroller/myfunction.</p>
  
  <p>When they enter the website via this link, i don't set the session from the domain and i'll get some errors.</p>
  
  <p>So my question is:
  Does someone have a solution to check/set this session in every function of every domain?</p>
  
  <p>Thanks in advance!</p>