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
What are the benefits of using php and mysql?
How to make database connection in php?
How do I start a php session?
Write down the code for saving an uploaded file in PHP.
Do you know what does mvc stand for and what does each component do?
What is php beginner?
How many escape sequences are recognized in single-quoted strings?
What is php oops concepts?
What is the use of php and mysql?
What is env in laravel?
Tell me what is the use of isset() in php?
What is ci framework in php?
What is the difference between file_get_contents() and file_put_contents() in php?
Does php support multithreading?
What are the correct and the most two common way to start and finish a PHP block of code?