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
What is session?
What do you mean by servlet?
What are common tasks performed by Servlet Container?
How to upload a file to the server using servlet?
What are the life cycle methods of the servlet?
What is generic servlet class?
What methodology can be followed to store more number of objects in a remote server?
What is the advantage of Servlets when compared with other server side technologies?
Why doesn’t a servlet include main()?
What is the use of welcome-file-list?
What is the need of servlet filters?
What are the steps that are involved in using the httpservlet class?
What is the servletconfig object?
Define the servlet mapping.
What is the difference between the http servlet and generic servlet?