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

What are the benefits of using php and mysql?

513


How to make database connection in php?

539


How do I start a php session?

542


Write down the code for saving an uploaded file in PHP.

599


Do you know what does mvc stand for and what does each component do?

507






What is php beginner?

506


How many escape sequences are recognized in single-quoted strings?

491


What is php oops concepts?

528


What is the use of php and mysql?

558


What is env in laravel?

539


Tell me what is the use of isset() in php?

545


What is ci framework in php?

501


What is the difference between file_get_contents() and file_put_contents() in php?

679


Does php support multithreading?

561


What are the correct and the most two common way to start and finish a PHP block of code?

634