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 / meenakshisundaram
1.Cookies are stored in Client side.
2.i.If more than 20 cookie variables stored in client side then error may occur "size of cookie exceed the limit" like that...
ii.To overcome this, we can store these cookies in single array. but anyway if the size of the cookie exceed the limit then again same error will occur. Only we can solve the count of cookie variable limit by using array.
3.Yes we can pass the domain details as a parameter while creating cookie itself
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between put and post method in http?
Which operator is used to concatenate two strings in PHP?
write a prog using insert,update,delete in this manner as output? name: phno. add button 1.name phno. edit button delete button 2.
If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?
What is difference between compile time and run time polymorphism?
How does php server work?
What is php beginner?
Tell me how comparison of objects is done in php5?
What is delimiter php?
Which database is best for php?
Do you know what is the function func_num_args() used for?
How to create reusable code in php?
What is memcache?
What is die in php?
What types of loops exist in php?