How many ways to remove the session object in the container
Answer Posted / shyamalendu prusty
If you are using HTTP Session then you can use
session.remove().
But if you are using some other ways for session management
let’s say cookies then you have to then you can setMaxAge
to zero for the cookie.
| Is This Answer Correct ? | 5 Yes | 9 No |
Post New Answer View All Answers
How does Cookies work in Servlets?
What do you mean by chaining in servlet?
Difference between java beans & servlets?
How to create war file?
What is difference between GenericServlet and HttpServlet?
What is the use of attribute in servlets?
What do you mean by deployment descriptor?
What is a web container and what is its responsibility?
What is the difference between forward () and sendredirect () functions in servlet? Explain
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 different methods involved in generic servlet?
What are common tasks performed by Servlet Container?
What do you mean by servlet?
Why are http servlets used in programming?
What is the use of httpservletrequestwrapper and httpservletresponsewrapper?