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 servlet and how it works?
Why are servlets used?
Write a simple servlet program to print the contents of html.
explain the advantages of servlet life cycle?
What is cookie in servlet?
What do you mean by a filter and how does it work?
Difference between get and post in java servlets?
Is java servlet still used?
How the typical servlet code look like ?
Who is responsible to create the object of servlet?
How to commuincate between an applet and a servlet?
What is the
What is the functionality of actionservlet and requestprocessor?
Difference between forward() method and sendredirect() method ?
Name the different ways of session tracking.