title: I don't understand how to configure my security.yml file for the index page
body: <p>I developed my symfony2 website with the required authentification (with FOSUserBundle).
  Now I have decided to add 2 more exceptions for the anonymous visitors: The index page ("/") and the contact form ("/contact").</p>
  
  <p>When I modify my security.yml, these get broken:</p>
  
  <ul>
  <li>In my twig contact form page, all of my "{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}" don't work anymore. It is really like I am not authentificated anymore.</li>
  <li>In my twig index page, I have the same problem, too.</li>
  </ul>
  
  <p>Here is my security.yml.  I know that it can be trivial, but I don't find it in the doc where I can have more information on "keep me connected with authenticated session living" with the security.yml file. Everything I have tried doesn't work.</p>
  
  <pre><code>security:
      encoders:
          "FOS\UserBundle\Model\UserInterface": sha512
  
      role_hierarchy:
          ROLE_AUTHOR:            ROLE_USER
          ROLE_ADMIN:             [ROLE_USER, ROLE_AUTHOR]
  
      providers:
          fos_userbundle:
              id: fos_user.user_manager
  
      firewalls:
          dev:
              pattern:  ^/(_(profiler|wdt)|css|images|js)/
              security: false
  
          login:
              pattern:   ^/(login$|register|resetting)
              anonymous: true
  
          token:
              pattern:    ^/administration/create-user/confirmation-token/
              anonymous: true
  
          #this is where it fail....
          contact:
              pattern:    ^/contact$
              anonymous: true
  
          index:
              pattern:    ^/$
              anonymous: true
  
  
          # Main Firewall
          main:
              pattern: ^/+
              form_login:
                  provider:    fos_userbundle
                  remember_me: true
              remember_me:
                  key:         %secret%
              anonymous:       false
              logout:          true
              #http_basic:
              #    realm: "Secured Demo Area"
  
      access_control:
          #- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https }
          #- { path: ^/_internal, roles: IS_AUTHENTICATED_ANONYMOUSLY, ip: 127.0.0.1 }
  </code></pre>
  
  <p>Thank you in advance</p>