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
What is echo in html?
What are psrs? Choose 1 and briefly describe it?
How to add 301 redirects in PHP?
What would occur if a fatal error was thrown in your php program?
What is a trait in php?
How long should a session last?
Tell me how can we check the value of a given variable is alphanumeric?
Name and explain five of the PHP error constants?
What is difference between include and include_once in php?
explain php variable length argument function.
What is use of isset function in php?
What's the difference between accessing a class method via -> and via ::?
What is the use of dual table in mysql?
Tell us how can we display the output directly to the browser?
What is interface? Why it is used?