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 xss and csrf?
How to replace a substring in a given string?
What is implode() in php?
Is server side a session?
How to connect to a url in php?
What is php artisan tinker?
What is use of in_array() function in php?
Distinguish between urlencode and urldecode?
what is constructor
How does the identity operator === compare two values?
How to create a session? How to set a value in session? How to remove data from a session?
Define about declare construct?
If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?
How can I display text with a php script?