title: Redirecting with PHP after jQuery post
body: <p>So I learned recently that if you use jquery <code>$.post</code> to post back to a PHP script, that you cannot then do an @header redirect within that script (even if you use <code>exit();</code> immediately after it). </p>
  
  <p>This is enormously depressing news since I have an important redirect/flash message class that I use a lot after a form submission is successfully executed. </p>
  
  <p>The fact that jQuery post is "greedy" and doesn't let the php script interrupt it is a huge limitation. </p>
  
  <p>Does anyone know of a solution that will let me ajax post form data back to PHP, and then redirect from within PHP? Duplicating the redirect/flash message class in javascript is not really an option for me. </p>
  
  <p>Does anyone know of a way to overcome this issue?</p>