How to make a log in form in php?(also log out) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make a log in form in php?(also log out)

31st Aug 2016, 1:36 PM
michael carael
michael carael - avatar
2 Answers
+ 2
Create a form which will take two values, username and password. Match values with DB stored values, If both values matched than use session to start user defined dashboard. For log out, just use flush session query on logout button, no need of creating seaprate log out page.
1st Sep 2016, 6:16 PM
Ankit Bhatnagar
Ankit Bhatnagar - avatar
0
you save your form in a database and in a file. log
31st Aug 2016, 4:49 PM
francis