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.