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 does the term localization refer to?

1179


What is the use of servlet context?

1100


How can you create a session in servlet?

1211


When jsessionid is created?

1099


How to handle exceptions thrown by application with another servlet?

1135


What’s the difference between sendredirect and forward methods

1104


What is called Session Tracking?

1246


How can we invoke another servlet in a different application?

1265


What's the servlet interface?

1121


What is life cycle of Servlet?

1122


What is servlet name in web xml?

1038


Can we override destroy method in servlet?

1035


Is tomcat a servlet container?

1108


What do you mean by httpservlet and how it is different from the genericservlet?

1120


How can we refresh automatically when new data is entered into the database?

1147