FOSUserBundle and remember me

前端 未结 4 1154
伪装坚强ぢ
伪装坚强ぢ 2021-02-06 00:43

I\'m using a FOSUserBundle for authentication in Symfony2. Everything works fine except \"remember me\". My security.yml looks like this:

security:
providers:
           


        
4条回答
  •  难免孤独
    2021-02-06 01:20

    Remember me feature may not work if browser can't set cookies on your domain (localhost, for example). If this is a case, then setup your domain as a valid domain name (eg, dev.site.com). Also make sure you have cleared cache.

提交回复
热议问题