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...

when will cookie information destroy?

Answer Posted / bijaya

Cookie is a small unit of information created at the server and is maintained at the client side.
This information is managed by HTTP protocol.
The cookie will be exiating in the client for the time period specified by the MaxAge property,
So,to destroy the the cookie we have to set the MaxAge to 0.
Ex:
cookie.setMaxAge(0);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different methods of session management in servlets?

1027


What is http servlet? Explain with the help of an example.

1066


What's the architecture of a servlet package?

1058


What are the life cycle methods of a servlet?

1052


Explain the role of dispatcherservlet and contextloaderlistener.

1195


What is meant by cookies?

1081


What is the GenericServlet class?

1234


How to get the IP address of client in servlet?

1089


What is the difference between servlet and jsp?

1119


Difference between forward() method and sendredirect() method ?

1037


What do you mean by session tracking and also explain its techniques?

992


What is webservlet?

996


What are the difference between RMI and Servlets?

1565


Why the container loads server at the application startup and how?

1064


What is difference between jsp and servlet?

1175