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 join multiple strings into a single string?
How do I repair phpmyadmin?
How to write a program to make chess?
Can php use gettext?
Explain type casting and type juggling.
How can you upload a file using php?
What is difference between mysql_connect and mysqli_connect?
Is string php function?
What is $globals php?
What is difference between variable declaration and variable definition?
What is difference between strstr() and stristr() in PHP?
Is runtime polymorphism overriding?
What is super keyword in c++?
Why print_r is used in php?
What is final class and final method in php?