How to configure a remember me aware listener in Symfony 2?

前端 未结 5 584
既然无缘
既然无缘 2021-02-14 23:25

I have implemented a custom authentication provider successfully, but now I also need to add \'remember me\' functionality, and I couldn\'t find docs on how to do that.

5条回答
  •  无人共我
    2021-02-14 23:43

    From Symfony 2.8, the "key" is replaced by "secret". So you will have:

    remember_me:
       secret: %secret%
       lifetime: 31536000
    

    If you run across this error, that is the fix

提交回复
热议问题