title: Prevent Ajax Call When there is no session & Network Discoonects in codeigniter
body: <p>I  facing two issues in my project.Please help me to rid of those.</p>
  
  <ol>
  <li><p>I am using .load() function in javascript to load the other page
  using Ajax. It's Working great. But if i opened my project in other
  tab and logout and get back to here and try to make ajax call it is
  showing the login page Where i am loading the page using .load()
  function.How do i solve it.</p></li>
  <li><p>How do i stop ajax call when network disconnects ?</p></li>
  </ol>
  
  <p>how to solve these two issues??</p>