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
Explain about getters and setters in php?
What is a query give example?
Which one is best framework for php?
List few sensible functions in PHP?
Is key exist in array php?
How to Pass JSON Data in a URL using CURL in PHP?
What is the use of 'print' in php?
What is difference between core php and framework?
Does php need html?
How to convert a string to uppercase in php?
In php how can you jump in to and out of "php mode"?
How to assigning a new character in a string?
Explain me what is the goto statement useful for?
Which php framework is best?
What are the 5 types of variables?