CakePHP remember me with Auth

后端 未结 8 1951
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-30 06:22

I have successfully used Auth, but unfortunately, it seems that it does work only with Session. I want that if user checks \"Remember Me\" checkbox, I would use Cookie and h

8条回答
  •  醉酒成梦
    2020-11-30 06:52

    use CookeAuthenticate adapter:

    https://github.com/ceeram/Authenticate/blob/master/Controller/Component/Auth/CookieAuthenticate.php

    here more info:

    https://github.com/ceeram/Authenticate/wiki/Set-Cookie

提交回复
热议问题