PHP login problems

Source: Internet
Author: User
PHP login question PHP password

The organization wants to build a PHP website. However, if you want to log on to PHP, you can directly bind it to your computer. that is, you can directly read the IP address of your computer and log on directly, saving yourself the need to enter your account and password. how can this problem be solved, help !!!


Reply to discussion (solution)

What is the idea of using an IP address as a cookie to log on to an intranet server over the Internet?

You can directly use the IP address in the browser's header information as the user name, and then verify. That's all right?

When receiving any php request, first verify whether you have logged on. if not, check whether the ip address of the other party (the obtained method is here) can automatically log on. If yes, automatically log on. in this way, the user logs on directly, regardless of whether the user logs on or not.

Save your IP address to the cookie.

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.