How many ways to remove the session object in the container
Answer Posted / ravikiran
1).request.getSession().invalidate();
2).request.getSession.removeAttribute("obj");
3).Adding the following code inside the web.xml
<session-config>
<session-timeout>mins</session-timeout>
</session-config>
4).calling the seMaxInactiveInterval(seconds);
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Explain the differences between jsp and servlet.
What is the disadvantage of cookies?
What is a cookie What is the difference between session and cookie
What is the procedure of invoking different servlet in a different application?
What is SingleThreadModel interface?
How can we achieve transport layer security for our web application?
What is servlet configuration?
What are all the protocols supported by httpservlet?
How can we implement a jsp page?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
How many servlet objects are created?
How can I send user authentication information while making URL Connection?
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 meant by cookies?