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
What is a cookie What is the difference between session and cookie
What is servlet in tomcat?
Explain the war file?
How the servlet is loaded?
What exactly is a servlet?
What are the ways to handle multi-threading in servlets?
Why HttpServlet class is declared abstract?
Is servlet a framework?
Explain url encoding in servlet?
What do you mean by request dispatcher in servlet? Also explain its methods.
What are the functions of Servlet container?
What are the different methods of session management in servlets?
Why is init() method is used in servlets?
What are session variable in servlets?
How can we create deadlock situation in servlet?