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

How to find the index of an element in an array php?

521


What are the advantages and disadvantages of cascade style sheets?

664


What is the difference between print() and echo()?

573


How check variable is set or not in php?

454


What are the benefits of using queries?

507






Why overriding is called runtime polymorphism?

522


Should I use mysqli or pdo?

513


Are react hooks stable?

515


How to create an empty array in php?

575


Are php variables global?

553


What is restful api?

504


Write a program in php to reverse a number?

542


What beforeFilter() is used?

647


Which is better php praogramming or cad/cam scope wise and also salaray wise?

1573


How to remove duplicate values from a PHP Array?

541