Use session to record user information. How to remember the password

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.