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
Explain web container.
What is the difference between Server and Container?
Which application server is best for java?
What are the steps involved in placing a servlet within a package?
What is the difference between the servlets and cgi programs?
What are different Authentication options available in Servlets.
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
What is the difference between genericservlet and httpservlet
What do you mean by cgi?
Which is the methods of generated servlet?
What is servlet invoker?
Define the servlet mapping.
What is a web container and what is its responsibility?
What is servlet and how it works?
How to create war file?