0
PHP Authentication
Validate Login using Php
3 odpowiedzi
+ 8
provide more details on your query
+ 1
As @Swati said, to give an adequate and accurate answer more details, info or a more precise question is needed
For a general answer, let's say you are using a LAMP server and the html file for the login page is already created.
In the php code you would need to get the username and password submitted.
Then make a query to the database to check if the password matches with the username.
At last, after a succesful login there are many options you can either give the user a cookie for a limited amount of time or set up an internal system that checks if the IP has been authenticated and with which user or any other method you design
0
about start_session (): and end session while logout