One of the most typical functionalities offered by sites with authentication capabilities is the ability to let the user choose (by clicking on a checkbox) whether they want the system to remember their account after logging in.
We should have a working authentication system, so follow the entire recipe, Setting up a basic authentication system.
app/app_controller.phpfile and add the following
Authcomponent settings to the
Authcomponent. Also add the
Cookiecomponent by making the following changes to the
$componentsproperty) must include the following mandatory setting (if it is not there, add it inside the array of settings ...