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 and why it is used?
What is if isset ($_ post submit )) in php?
Tell me what is needed to be able to use image function?
What is the use of htmlspecialchars in php?
How to download and install php for windows?
Where are the persistent cookies stored on your computer?
Why is php so popular?
How to read the entire file into a single string?
Where session is stored?
What are the uses of php language?
What is the use of stripslashes in php?
What is the difference between html and php?
What is user defined function in php?
What are the steps involved to run php?
What is data abstraction in php?