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 is php form validation?
What is nan value?
What is polymorphism?
What is uniqid php?
Where is session value stored?
Write a php script to get the largest key in an array?
What are the 5 types of data?
How can we change the value of a constant?
What is the use of 'print' in php?
List some of the features of php7.
How is it possible to parse a configuration file?
What are the different tables(engine) present in mysql, which one is default?
How do you create an array in php?
What is the use of is_array() and in_array()?
What is the function mysql_pconnect() useful for?