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
Explain about getters and setters in php?
Tell me how can we determine whether a php variable is an instantiated object of a certain class?
What is overriding in php?
Is apache needed for php?
How does php strcmp work?
What is a php trait?
How to delete a file from the system?
How do I get csrf token?
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
Which php framework is best for beginners?
What are major variables in research?
How to uploaded files to a table?
What is the purpose of the '.myd' file extension? What do thes file contain?
What is the difference between htmlentities() and htmlspecialchars()?
What does the scope of variables means?