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 can you use a servlet to generate a plain text instead of html?
Explain the methods of request dispatcher in servlet?
How printwriter is different from servletoutputstream?
What are the uses of servlets?
Which interface must be implemented by all servlets?
What is the type of method for sending request from http server?
How do I support both get and post from the same servlet?
Why do we use sendredirect() method?
When servlet object is created?
What do you mean by servlet?
Describe some assignments that are executed by servlet container?
What is the difference between jsp and servlet life cycle?
How do cookies work in servlets?
What are the advantages of cookies?
How can we include static files in the jsp page?