title: Codeigniter session Not Working across all controllers
body: <p>what would be the best way to allow sessions to be used across all my controllers? i think there are a couple ways to do it:  </p>
  
  <p>1) define() session into global variables. I heard this is not best approach<br>
  2) set up a general MY_controller and extend every other controller to it. set up sessions there and that will make them available in all classes<br>
  3) something that has to do with adding &amp;get_instance() to the __constructor() function that comes on the top of every controller<br>
  what would be the best way of setting sessions across all controllers? </p>
  
  <p>i wasnt able to use any of these methods. any ideas would be helpful. Thanks </p>
  
  <p><b>BTW, the problem was that codeigniter doesn't like simultaneous ajax requests. They interfere with each other and session data gets erased. </b></p>