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 / abhi kakade

I have answered in this way. Next question from the
interviewer was 'How can we make cookies secure ?' :-(
Anybody please answer this question.
Ans : there are two types of cookies 1) permanent 2)
temporary temporary cookies are secure those cookies file
gets deleted when browser session ends.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Binary tree question - Node has numeric data (int) The function takes depth as argument and sum all the value of the node of the depth. For instance, (0) depth 0 / \ 10 20 depth 1 / \ / \ 40 50 60 70 depth 2 so if you pass get_sum(2), you would return 220 which is 40+50+60+70 (sum of depth2) write the function.

1514


How can we set and destroy the cookie in php?

496


Explain a resource?

618


What is the difference between characters 23 and x23?

556


Is java is better than php?

553






How to redirect https to http url through .htaccess?

501


What is serialization in php?

465


What is polymorphism with example in php?

519


What is a namespace in php?

479


How to connect to a url in php?

520


How does php sessions work?

526


What is use of echo in php?

484


How to replace a substring in a given string?

556


How to check whether a number is prime or not?

543


What is the most common http method?

521