title: How to know route from the URL or $request Object?
body: <p>PLOT: </p>
  
  <blockquote>
    <p>After implementing ACL on my website, if a user tries to access unauthorised page he will be denied and shown a page to login. After he loggs in, I wanted to redirect the user to the previous page to which he was denied to earlier.</p>
  </blockquote>
  
  <p>To do this, I store the request parameters using <code>$request -&gt; getParams()</code>, onto a session variable, which will be used to generate the url again. <strong>This is where the problem occurs</strong>, to generate the url back, I need the name of the route and that i dont know how to read. </p>
  
  <p>I need to know the route name, so that I will be able to regenerate the url, from the array stored in session, or if there is a better way to solve this, please suggest.</p>