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
How to find the index of an element in an array php?
What are the advantages and disadvantages of cascade style sheets?
What is the difference between print() and echo()?
How check variable is set or not in php?
What are the benefits of using queries?
Why overriding is called runtime polymorphism?
Should I use mysqli or pdo?
Are react hooks stable?
How to create an empty array in php?
Are php variables global?
What is restful api?
Write a program in php to reverse a number?
What beforeFilter() is used?
Which is better php praogramming or cad/cam scope wise and also salaray wise?
How to remove duplicate values from a PHP Array?