title: How to implements Progress bar when doing Ajax request Voluminous db updates
body: <p>Good morning,
  I have script that updates voluminous data (for exemple 3000Lines) and I have to show to user progress of db updates on progress bar or just the number of lines affected.
  I'm working on PHP codeigniter and AJAX
  I had an idea to use session codeigniter to store modified variable (incrementation) on the session value on each Loop and call function that give me the session variable as JSON array, but the problem is that the session wouldn't change itself after first update (for exemple: starting with 0 and modified to 20, after that all process on 20)</p>
  
  <p>I don't know how to get better solution to do it. If you can help me it will be really cool.
  Thank's to all</p>