title: symfony2 not redirecting properly after login_check
body: <p>I created a route named <strong>dashboard</strong>. 
  The user will login first in the <em>/dashboard/logout</em> route before accessing
  the <em>/dashboard/mailer</em> route.</p>
  
  <p>The problem is the <em>/dashboard/mailer</em> redirects to the <em>/dashboard/login</em> again. See the images below.</p>
  
  <p><img src="https://i.stack.imgur.com/Dv1GI.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/b9lU7.png" alt="enter image description here"></p>
  
  <p>You will notice that when it reaches the mailer route, it will send a Location header again pointing to the login route.</p>
  
  <p>It works on my dev server without https but when I upload it to production with https, It does not redirect properly.</p>
  
  <p>Here is my security.yml</p>
  
  <p><img src="https://i.stack.imgur.com/76ebp.png" alt="enter image description here"></p>
  
  <p>Here is the <em>default_security_target</em></p>
  
  <p><img src="https://i.stack.imgur.com/Y8GwF.png" alt="enter image description here"></p>
  
  <p>In case you need it, <a href="http://pastebin.com/ukBPrzQD" rel="nofollow noreferrer">here is the .htaccess</a> in my production server. My production server is behind a load balancer with 2 nodes. The trusted_proxy configuration is also already set. Also, the firewall uses an in memory provider.</p>