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 the effective way to make sure all the servlets are accessible only when user has a valid session?
How do you run a servlet?
What are the difference between RMI and Servlets?
Is that servlet is pure java object or not?
What is difference between cookies and httpsession?
Difference between doget and dopost?
Explain get and post.
What do you understand by mime type?
What is the type of method for sending request from http server?
What are different ways for authentication of servlet?
Explain the difference between servletconfig and servletcontext in servlet?
request parameter how to find whether a parameter exists in the request object?
What is a server side include (ssi)
Explain the working of service() method of a servlet.
What are the functions of the servlet container?