title: Check if user is redirected or not in symfony?
body: <p>I have a route in my symfony project that is restricted, so if I try to go there without being logged on I'm redirected to the login page.</p>
  
  <p>I'd like to distinguish between when I try to go to a restricted area without being logged on, and when I just go to the login page directly.</p>
  
  <p>Any clues of how to do this in symfony?</p>
  
  <p><strong>Update</strong>
  By distinguish I mean some way to check if auser landed on the login page by going to that url directly, or if the user landed on the login page because he tried to access a restricted page.</p>