PHP Authentication

Validate Login using Php

20th Apr 2017, 8:31 AM
Mujahid Baita
Mujahid Baita - avatar
3 Answers
+ 8
provide more details on your query
20th Apr 2017, 10:06 AM
Swati - avatar
+ 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
20th Apr 2017, 1:37 PM
spcan - avatar
about start_session (): and end session while logout
21st Apr 2017, 12:58 PM
Mujahid Baita
Mujahid Baita - avatar