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 is session?

1047


What do you mean by servlet?

1128


What are common tasks performed by Servlet Container?

1250


How to upload a file to the server using servlet?

986


What are the life cycle methods of the servlet?

1072


What is generic servlet class?

1047


What methodology can be followed to store more number of objects in a remote server?

2264


What is the advantage of Servlets when compared with other server side technologies?

2334


Why doesn’t a servlet include main()?

1025


What is the use of welcome-file-list?

1018


What is the need of servlet filters?

995


What are the steps that are involved in using the httpservlet class?

1109


What is the servletconfig object?

1024


Define the servlet mapping.

1036


What is the difference between the http servlet and generic servlet?

1127