How many ways to remove the session object in the container
Answer Posted / sekhar babu
To remove the session object .
1. with the help of web.xml
<session-timeout>time in minutes</session-timeout>
2. in programatically
session.setMaxInactiveInterval(time in seconds)
to terminate immediately the session
use session.invalidate()
| Is This Answer Correct ? | 23 Yes | 0 No |
Post New Answer View All Answers
Why the concept of single thread model interface is used?
What do you mean by a filter and how does it work?
What are the exceptions thrown by servlets? Why?
What are the different session tracking techniques?
What is life cycle of Servlet?
What is the capacity the doget can send to the server?
How do we call one servlet from another servlet?
How do you deal property files in servlet?
What is the use of servlet context?
Write the code to get the server information in servlet.
What is the difference between using getSession(true) and getSession(false) methods?
What are the types of servlets? Explain
What's the architecture of a servlet package?
What is servlet invoker?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?