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 can MYSQL functions be available with PHP?
Which is useful for method overloading?
my english is not too good then what we apply for a php programer post
Does php 5 support exceptions?
What is Type hinting in PHP?
How many ways to include array elements in double-quoted strings using php?
Is php used in 2019?
What is alias in php?
What is the difference between include and require?
What is memcache?
How to read the entire file into a single string?
Where sessions stored in PHP?
What is instantiation?
How is session id stored in browser?
Can I use node js with php?