How can we do user authentication without using
session/cookies ? For ex:- From page1 accepts user name and
password and need to check in all other pages whether the
user has logged in or not

Answer Posted / binoyav

Passing parameters from one page to another page is not a
feasible solution. I think the user authentication can be
done through database. Once the user login to the site, the
application will store the user name and IP address of the
user to one database table. From other pages (by putting ne
common file ) will check whether that IP address exists in
that table.
Is it correct ? Any drawback for this ? Or any other solution ?

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about getters and setters in php?

541


Tell me how can we determine whether a php variable is an instantiated object of a certain class?

564


What is overriding in php?

620


Is apache needed for php?

518


How does php strcmp work?

514






What is a php trait?

497


How to delete a file from the system?

576


How do I get csrf token?

563


I need to know about the courses which are useful in corporate companies.. especially php/mySQL, Java/j2ee, .NET.. also tell if any other courses are valuable

1524


Which php framework is best for beginners?

517


What are major variables in research?

551


How to uploaded files to a table?

566


What is the purpose of the '.myd' file extension? What do thes file contain?

548


What is the difference between htmlentities() and htmlspecialchars()?

549


What does the scope of variables means?

592