Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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)?

Answers were Sorted based on User's Feedback



1.Where are the cookies storing ? 2.What is the drawback of using cookies ? 3. If two site is havi..

Answer / pradeep

For 2nd question
1.If clients disables cookies, then we can save a cookie.
2.As data is stored in a txt file. there is no security.
3.For each web site only 20 cookies are allowed.i.e
limitation of the size

Is This Answer Correct ?    6 Yes 0 No

1.Where are the cookies storing ? 2.What is the drawback of using cookies ? 3. If two site is havi..

Answer / guest

1.In client side

Is This Answer Correct ?    5 Yes 0 No

1.Where are the cookies storing ? 2.What is the drawback of using cookies ? 3. If two site is havi..

Answer / ranjan

3. domain name can be mentioned as a parameter in setcookie
function

Is This Answer Correct ?    5 Yes 0 No

1.Where are the cookies storing ? 2.What is the drawback of using cookies ? 3. If two site is havi..

Answer / 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

1.Where are the cookies storing ? 2.What is the drawback of using cookies ? 3. If two site is havi..

Answer / rubina

Binoyav what i think the reply to your answer is:
Storing the state in the web server -- the middle tier --
can solve the problem of increased request size and protect
the state of an application from accidental or intentional
changes a user might make.

Is This Answer Correct ?    0 Yes 0 No

1.Where are the cookies storing ? 2.What is the drawback of using cookies ? 3. If two site is havi..

Answer / 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

1.Where are the cookies storing ? 2.What is the drawback of using cookies ? 3. If two site is havi..

Answer / 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

1.Where are the cookies storing ? 2.What is the drawback of using cookies ? 3. If two site is havi..

Answer / ranjan

Pradeep I am not getting it. How there is no security when
cookie is also a txt file.

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More PHP Interview Questions

which function used to get the number of days between two given dates in php

1 Answers  


What’s the special meaning of __sleep and __wakeup?

0 Answers  


What is php and sql used for?

0 Answers  


What is difference between put and post method in http?

0 Answers  


How to get no. of rows using MYSQL function?

0 Answers  


my english is not too good then what we apply for a php programer post

0 Answers  


What are the security measures we have to take for our site not to hack by others?

1 Answers   Infosys,


Is php required for wordpress?

0 Answers  


What is php programming used for?

0 Answers  


Difference between $message vs. $$Message in php.

0 Answers  


Tell me what the difference between the 'bitwise and' operator and the 'logical and' operator?

0 Answers  


What is member function?

0 Answers  


Categories