1.Where are the cookies storing ?
2.What is the drawback of using cookies ?
3. If two site is having same cookie name and different
values what will be the output if we echo the cookie name
from those sites ? How can we solve this issue (How can we
specify the domain name)?
Answer Posted / binoyav
2. Drawback of cookies is they are less secure. For example,
if you are using windows machine, cookies will be stored in
cookies folder. So others can copy that file and paste in
his machine. So that he can login with other user's
username and password.
I have answered in this way. Next question from the
interviewer was 'How can we make cookies secure ?' :-(
Anybody please answer this question.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How can I display text with a php script?
What does the scope of variables mean?
Is null in php?
How values in arrays are indexed?
Does php have block scope?
Tell me what types of loops exist in php?
How do you define a constant?
What are the different types of PHP arrays?
How to include a file to a PHP page?
What is csrf token and how will you add csrf token in ajax?
Which function would you use to replace a record in a database in php?
Explain Type hinting in PHP?
Why json is used in php?
Write down the code for save an uploaded file in php.
Why do we use cookie?