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
Which is better jsp or servlet?
What is called Scriptlet?
Difference between httpservlet and generic servlets?
Explain the role of dispatcherservlet and contextloaderlistener.
Explain the difference between get and post method in servlet?
Explain url encoding?
What is servlet in tomcat?
What is the life cycle of a servlet?
List out the difference between ServletConfig and ServletContext?
What is the type of method for sending request from http server?
What are the differences between servlet context vs servlet config?
What's the use of servletcontext?
How can a servlet be used to generate plain text instead of html?
What are the various ways of session supervision in servlets?
How to commuincate between an applet and a servlet?