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 does the term localization refer to?
What is the use of servlet context?
How can you create a session in servlet?
When jsessionid is created?
How to handle exceptions thrown by application with another servlet?
What’s the difference between sendredirect and forward methods
What is called Session Tracking?
How can we invoke another servlet in a different application?
What's the servlet interface?
What is life cycle of Servlet?
What is servlet name in web xml?
Can we override destroy method in servlet?
Is tomcat a servlet container?
What do you mean by httpservlet and how it is different from the genericservlet?
How can we refresh automatically when new data is entered into the database?