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 are the different methods of session management in servlets?
What is http servlet? Explain with the help of an example.
What's the architecture of a servlet package?
What are the life cycle methods of a servlet?
Explain the role of dispatcherservlet and contextloaderlistener.
What is meant by cookies?
What is the GenericServlet class?
How to get the IP address of client in servlet?
What is the difference between servlet and jsp?
Difference between forward() method and sendredirect() method ?
What do you mean by session tracking and also explain its techniques?
What is webservlet?
What are the difference between RMI and Servlets?
Why the container loads server at the application startup and how?
What is difference between jsp and servlet?