Cake PHP 3.5 Auth remember me



I use Auth component. How can I add to this remember me option?



When you only want to “remember” the username, you could set a cookie for that. Though I would’t recommend to set the password in that cookie also (for security reasons, obviously…)

If you want to get the user automatically logged in, whenever he/she visits your site, I’m currently not aware of any (secure) variant to achieve this…

Hope this helps


I also don’t think that remembering user/pwd in a cookie is very safe. People should leave this to client side solutions, like a password manager. The alternative is using SSO. You could even have people log in using Facebook. Not my personal preference, but it can be done. :slight_smile: