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
Why servlet is mostly used?
I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?
Explain the difference between get and post method in servlet?
How to create war file?
Explain servlet life cycle?
What’s the difference between genericservlet and httpservlet?
What is a servlet-to-servlet communcation?
What do you mean by request dispatcher in servlet? Also explain its methods.
What do you mean by chaining in servlet?
Which is the methods of generated servlet?
What is difference between PrintWriter and ServletOutputStream?
What's the architecture of a servlet package?
What do you mean by filter in servlet?
What's the difference between servlets and applets?
What is the type of method for sending request from http server?