title: Yii2 abort request and sql query
body: <p>After page fully loaded, i make ajax request to an action.  </p>
  
  <p>While waiting for response from action (it takes 2 or 3 seconds), if user clicks on other link, i want to abort previous request and kill mysql process at once.  </p>
  
  <p>How can i do this?</p>
  
  <p>I tried to do like this</p>
  
  <pre><code>var xhr = $.ajax({
  /*
  params
  */
  });
  
  //before unload page 
  xhr.abort();
  </code></pre>
  
  <p>but i think, that it will not kill sql process.</p>