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
Explain about the data types in PHP?
Tell me how to initiate a session in php?
Tools used for drawing er diagrams?
What is mean tnq
What is the best way to change the key without changing the value of a php array element?
Where are cookies stored php?
How to use http headers inside php?
How to terminate the execution of a script in PHP?
Who is known as the father of php?
What is an associative array?
What is compact function php?
How to update memcached when you make changes to php?
Explain Type hinting in PHP?
How to split a string into array using php?
Which is not a file-related function in php?