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
How do we go with database connection and log4j integration in servlet?
What are the differences between the servletconfig interface and the servletcontext interface?
What do you mean by request dispatcher in servlet? Also explain its methods.
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
Can we refresh servlet in client and server side automatically?
What are the key methods that are involved in processing of http servlets?
Explain how does JSP handle run-time exceptions?
What is the use of request dispatcher interface?
What are the uses of servlet
how the HTML data stored in web server?
Differentiate between the get and post method
Is tomcat a servlet container?
What is java servlet session?
How httpservlet is different from the genericservlet?
What is difference between get and post method?