Use session to record user information. How can I remember the password and remember the password after placing the user information in the session during login?
Reply to discussion (solution)
Not clear
Do you need to remember the password function for form login or capture the password after login and write it into the session?
Remember the user ID or user name.
At least the user name and password cannot be remembered at the same time, because this is not safe.
Remember that the password uses cookies to encrypt a piece of information.
Remember that the password should use cookies, and then read the password from cookies on the login page.
Of course, the password must be encrypted and stored in cookies before being decrypted during php reading.
Use session to record user information, remember the password, and keep the next time you do not enter the user name and password.