title: browser ignoring header refresh from ajax response
body: <p>In my javascript I have some ajax requests <code>$.getJSON({...})</code> for various actions.  I have a php app that handles these ajax requests.  Before processing the actual request, my app first checks the session and in the case the user hasn't logged in yet, it sends a refresh signal back.  Something like:
  <br /></p>
  
  <pre><code>if (not logged in) {
  header('Refresh: 0;');
  }
  else {
  //process request
  }
  </code></pre>
  
  <p>But the client doesn't actually refresh.  Is there something I'm missing when it comes to AJAX requests and the http refresh header?</p>