title: Symfony $request->isXmlHttpRequest() issue
body: <p>I need to check if the request is ajax. <code>$request-&gt;isXmlHttpRequest()</code> works fine, however if there is a redirect somewhere during the execution, this method will return false. How else can I check if request is ajax in this case?
  p.s. ajax is initiated by jQuery</p>