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
How is the get () method different from the post() method?
What is war file?
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
What is a servlet?
Explain jsessionid and when is it created?
Explain the difference between jsp and servlet?
What is the difference between servlet and filter?
What is the use of welcome-file-list?
What are the steps that are required to handle the multi-threading?
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
What are the benefits of using servlet over cgi?
What is the difference between Server and Container?
Which interface must be implemented by all servlets?
Which is the methods of generated servlet?
What is http servlet in java?