Cookiesession-php Tutorial

Source: Internet
Author: User
Cookiesession I am working on a website login page.
You want to save the account cookie on the user end. The session is called as needed.
The current account is the user's mobile phone number.
I think the user's mobile phone number is not secure on the client.
How can this problem be solved.
I feel that two-way encryption is insecure.


Reply to discussion (solution)

If the client is insecure, save the server.

$ Phone = md5 ("mobile phone number"); // This is not safe. $ phone = md5 (md5 ('mobile phone number '); // let them crack it with confidence.

PS: add one more segment to the database table
Add the md5 result twice to the segment address during registration.
When a user logs on, the user directly queries the MD5 result twice ~~~
MD5 is irreversible. this is the solution I came up.

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.